Skip to content

Commit

Permalink
perf: rm old files with dev build scripts + improve watch cpu usage
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Dec 6, 2023
1 parent e428956 commit 0843cf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "index.js",
"scripts": {
"build": "npx webpack --mode=production",
"build-dev": "npx webpack --mode=development",
"watch": "npx webpack --mode=development --watch",
"build-dev": "rm -r build/www/* && npx webpack --mode=development",
"watch": "rm -r build/www/* && npx webpack --mode=development --watch",
"gobuild": "./buildandrun.sh",
"lint": "npx eslint src/js",
"lint-fix": "npx eslint --fix src/js",
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ const config = {
},
devServer: {
static: './dist',
contentBase: './distgetuk',
contentBase: './dist',
},
watchOptions: {
poll: 1000,
ignored: /node_modules/,
},
plugins: [
new HtmlWebpackPlugin({
Expand Down

0 comments on commit 0843cf0

Please sign in to comment.