html-bundle 5.5.0 → 5.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -57,6 +57,7 @@ else {
|
|
|
57
57
|
let hasJSTS = false;
|
|
58
58
|
watcher.on("add", (filename) => {
|
|
59
59
|
start = performance.now();
|
|
60
|
+
rebuildCSS();
|
|
60
61
|
// Return if it was added by the build system itself
|
|
61
62
|
if (/-bundle-\d+\.(j|t)sx?$/.test(filename)) {
|
|
62
63
|
return;
|
|
@@ -80,6 +81,7 @@ else {
|
|
|
80
81
|
});
|
|
81
82
|
watcher.on("change", (filename) => {
|
|
82
83
|
start = performance.now();
|
|
84
|
+
rebuildCSS();
|
|
83
85
|
// Return if it was changed by the build system itself
|
|
84
86
|
if (/-bundle-\d+\.(j|t)sx?$/.test(filename)) {
|
|
85
87
|
return;
|
|
@@ -111,7 +113,8 @@ else {
|
|
|
111
113
|
});
|
|
112
114
|
function rebuildCSS(config) {
|
|
113
115
|
start = performance.now();
|
|
114
|
-
|
|
116
|
+
if (config)
|
|
117
|
+
console.log(`⚡ modified ${config}.config – CSS will rebuild now.`);
|
|
115
118
|
const newConfig = createPostCSSConfig();
|
|
116
119
|
plugins = newConfig.plugins;
|
|
117
120
|
options = newConfig.options;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-bundle",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.1",
|
|
4
4
|
"description": "A very simple bundler for HTML SFC",
|
|
5
|
-
"bin": "./dist/bundle.
|
|
5
|
+
"bin": "./dist/bundle.mjs",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "tsc",
|
|
8
8
|
"update": "npx npm-check-updates -u && npx typesync && npm i && npm outdated"
|
|
File without changes
|