'npm run dev' now watches for scss updates | 'npm run build' only builds everything

This commit is contained in:
xdrm-brackets 2018-02-20 17:59:24 +01:00
parent fc39833a84
commit 85782a26e2
1 changed files with 4 additions and 3 deletions

View File

@ -9,9 +9,10 @@
"build:clean": "rm ./public_html/js/bundle/*.js*; exit 0", "build:clean": "rm ./public_html/js/bundle/*.js*; exit 0",
"build:bundle": "cross-env NODE_ENV=production webpack --progress --hide-modules", "build:bundle": "cross-env NODE_ENV=production webpack --progress --hide-modules",
"build:dev": "cross-env NODE_ENV=development webpack --progress --hide-modules", "build:dev": "cross-env NODE_ENV=development webpack --progress --hide-modules",
"build:scss": "node-sass -r --output-style compressed --output ./public_html/css ./webpack/scss", "scss": "node-sass -r --output-style compressed --output ./public_html/css ./webpack/scss",
"dev": "npm run build:clean; npm run build:dev; npm run build:scss", "watch": "node-sass -w -r --output-style compressed --output ./public_html/css ./webpack/scss",
"build": "npm run build:clean; npm run build:bundle; npm run build:scss" "dev": "npm run build:clean; npm run build:dev; npm run watch",
"build": "npm run build:clean; npm run build:bundle; npm run scss"
}, },
"dependencies": { "dependencies": {
"vue": "^2.5.9" "vue": "^2.5.9"