Skip to content

Commit

Permalink
cleanup build
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-thomas committed Aug 8, 2022
1 parent 1664016 commit 651e95d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
17 changes: 12 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@
<meta name="robots" content="index, follow">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/railscasts.min.css">
<title>WinBox.js &ndash; Modern HTML5 Window Manager</title>

<!-- Import JS + CSS separately: -->
<link rel="stylesheet" href="dist/css/winbox.min.css">
<script src="dist/js/winbox.min.js"></script>

<!-- Or import as bundled (All-in-one): -->
<!-- <script src="dist/winbox.bundle.min.js"></script> -->

<!-- Optional standard themes: -->
<link rel="stylesheet" href="dist/css/themes/modern.min.css">
<link rel="stylesheet" href="dist/css/themes/white.min.css">
<!--<script src="dist/js/winbox.min.js"></script>-->
<!--<script src="dist/winbox.bundle.min.js"></script>-->

<!-- Custom Themes Demo: -->
<style>

/* WinBox Theme: "custom" */
Expand Down Expand Up @@ -610,9 +618,8 @@ <h1>Lorem Ipsum</h1>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/highlight.min.js"></script>
<script type="module">

import WinBox from "./src/js/winbox.js";

window.WinBox = WinBox;
//import WinBox from "./src/js/winbox.js";
//window.WinBox = WinBox;

(function(){

Expand Down
4 changes: 2 additions & 2 deletions task/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const style = process.argv[2] === "--style";
max: base64Sync('dist/img/max.svg'),
close: base64Sync('dist/img/close.svg'),
full: base64Sync('dist/img/full.svg'),
restore: base64Sync('dist/img/restore.svg'),
//restore: base64Sync('dist/img/restore.svg'),
//exit: base64Sync('dist/img/exit.svg'),
min: base64Sync('dist/img/min.svg')
};
Expand All @@ -37,7 +37,7 @@ const style = process.argv[2] === "--style";
}

fs.writeFileSync("tmp/images.less", tmp);
fs.writeFileSync("tmp/bundle.less", '@import "../src/css/winbox.less"; @import "images.less";');
fs.writeFileSync("tmp/bundle.less", '@import "../src/css/winbox.less"; @import "images.less";'); // @import "../src/css/themes/modern.less"; @import "../src/css/themes/white.less";
}

// ----------------------
Expand Down

0 comments on commit 651e95d

Please sign in to comment.