Added a clean before the build
This commit is contained in:
parent
883bb53c5c
commit
9b00a38d3c
|
@ -133,8 +133,8 @@
|
||||||
"clean": "cd public/assets && find . \\( -name \"*.js\" -o -name \"*.map\" -o -name \"*.json\" \\) -type f -delete",
|
"clean": "cd public/assets && find . \\( -name \"*.js\" -o -name \"*.map\" -o -name \"*.json\" \\) -type f -delete",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"lint": "eslint ./resources/scripts/**/*.{ts,tsx} --ext .ts,.tsx",
|
"lint": "eslint ./resources/scripts/**/*.{ts,tsx} --ext .ts,.tsx",
|
||||||
"watch": "cross-env NODE_ENV=development ./node_modules/.bin/webpack --watch --progress",
|
"watch": "crossx-env NODE_ENV=development ./node_modules/.bin/webpack --watch --progress",
|
||||||
"build": "cross-env NODE_ENV=development ./node_modules/.bin/webpack --progress",
|
"build": "yarn run clean && cross-env NODE_ENV=development ./node_modules/.bin/webpack --progress",
|
||||||
"build:production": "yarn run clean && cross-env NODE_ENV=production ./node_modules/.bin/webpack --mode production --progress",
|
"build:production": "yarn run clean && cross-env NODE_ENV=production ./node_modules/.bin/webpack --mode production --progress",
|
||||||
"serve": "yarn run clean && cross-env WEBPACK_PUBLIC_PATH=/webpack@hmr/ NODE_ENV=development webpack-dev-server --host 0.0.0.0 --port 8081 --hot"
|
"serve": "yarn run clean && cross-env WEBPACK_PUBLIC_PATH=/webpack@hmr/ NODE_ENV=development webpack-dev-server --host 0.0.0.0 --port 8081 --hot"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue