Parcourir la source

Add separate command for building CSS

Added postcss:dev which acts the same as postcss used to. postcss now
build it to the output directory.
Apis Necros il y a 2 ans
Parent
commit
10793d4658
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      package.json

+ 2 - 1
package.json

@@ -15,7 +15,8 @@
   },
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1",
-    "postcss": "npx postcss static/css/master.css -o static/css/tailwind.min.css",
+    "postcss": "npx postcss static/css/master.css -o ../public/css/tailwind.min.css",
+    "postcss:dev": "npx postcss static/css/master.css -o static/css/tailwind.min.css",
     "minify": "npx cssnano css/tailwind.css css/tailwind.min.css --safe",
     "help": "npx postcss --help",
     "build": "npm run postcss && npm run minify"