@newlogic-digital/core 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- package/modules/Serve.js +8 -1
- package/package.json +1 -1
package/modules/Serve.js
CHANGED
@@ -51,8 +51,15 @@ export const Serve = new class {
|
|
51
51
|
}
|
52
52
|
}
|
53
53
|
|
54
|
+
const reloadTailwind = {
|
55
|
+
name: 'reload-tailwind',
|
56
|
+
transformIndexHtml(html) {
|
57
|
+
return html.replace('tailwind.css', 'tailwind.css?v=' + new Date().getTime())
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
54
61
|
let config = {
|
55
|
-
plugins: (Config.serve.mode === "dev" && Config.styles.ratio.enabled) ? [middleware, ratio, reload] : [middleware, reload],
|
62
|
+
plugins: (Config.serve.mode === "dev" && Config.styles.ratio.enabled) ? [middleware, ratio, reload, reloadTailwind] : [middleware, reload, reloadTailwind],
|
56
63
|
publicDir: `${Config.paths.output.root}`,
|
57
64
|
server: {
|
58
65
|
open: Config.serve.index,
|
package/package.json
CHANGED