Add webpack watch command
This commit is contained in:
parent
5d64c66e1c
commit
76bae89331
4
Makefile
4
Makefile
@ -31,6 +31,10 @@ build-assets:
|
|||||||
rm -rf ./public/assets
|
rm -rf ./public/assets
|
||||||
nodejs npm run-script build
|
nodejs npm run-script build
|
||||||
|
|
||||||
|
watch-assets:
|
||||||
|
rm -rf ./public/assets
|
||||||
|
nodejs npm run-script watch
|
||||||
|
|
||||||
format-assets:
|
format-assets:
|
||||||
nodejs npm run-script format-webpack || true
|
nodejs npm run-script format-webpack || true
|
||||||
nodejs npm run-script format-js || true
|
nodejs npm run-script format-js || true
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --config webpack.config.js --progress",
|
"build": "webpack --config webpack.config.js --progress",
|
||||||
|
"watch": "webpack --config webpack.config.js --watch --progress",
|
||||||
"build-prod": "webpack --config webpack.config.js --env.production",
|
"build-prod": "webpack --config webpack.config.js --env.production",
|
||||||
"format-webpack": "prettier --single-quote --trailing-comma es5 --write \"./webpack.config.js\"",
|
"format-webpack": "prettier --single-quote --trailing-comma es5 --write \"./webpack.config.js\"",
|
||||||
"format-js": "prettier --single-quote --trailing-comma es5 --write \"./assets/**/*.js\"",
|
"format-js": "prettier --single-quote --trailing-comma es5 --write \"./assets/**/*.js\"",
|
||||||
|
Loading…
Reference in New Issue
Block a user