@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.
Files changed (2) hide show
  1. package/modules/Serve.js +8 -1
  2. 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newlogic-digital/core",
3
3
  "type": "module",
4
- "version": "0.9.1",
4
+ "version": "0.9.2",
5
5
  "main": "index.js",
6
6
  "author": "New Logic Studio s.r.o.",
7
7
  "description": "Set of tools that can be used to create modern web applications",