From 76bae89331c44e07e4326172399112f9a73eb6fa Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Thu, 28 Nov 2019 22:33:03 +0300 Subject: [PATCH] Add webpack watch command --- Makefile | 4 ++++ package.json | 1 + 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 4a9bf63..18da933 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,10 @@ build-assets: rm -rf ./public/assets nodejs npm run-script build +watch-assets: + rm -rf ./public/assets + nodejs npm run-script watch + format-assets: nodejs npm run-script format-webpack || true nodejs npm run-script format-js || true diff --git a/package.json b/package.json index 1a493c9..594c286 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ }, "scripts": { "build": "webpack --config webpack.config.js --progress", + "watch": "webpack --config webpack.config.js --watch --progress", "build-prod": "webpack --config webpack.config.js --env.production", "format-webpack": "prettier --single-quote --trailing-comma es5 --write \"./webpack.config.js\"", "format-js": "prettier --single-quote --trailing-comma es5 --write \"./assets/**/*.js\"",