Skip to content

Commit

Permalink
Merge pull request #164 from withtangent/fix/webpack-bugs
Browse files Browse the repository at this point in the history
Remove `watch` script and update `start` script
  • Loading branch information
bacoords authored Apr 17, 2023
2 parents 3d93044 + e9d6dfc commit a726f25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions bin/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ var config = {
}),
...defaultConfig.plugins,
],
cache: false,
};

// Return Configuration
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"lodash.set": "^4.3.2",
"micromodal": "^0.4.10",
"nodemon": "^2.0.20",
"npm-watch": "^0.11.0",
"remove-files-webpack-plugin": "^1.5.0",
"sass": "^1.58.0",
"sass-loader": "^13.2.0",
Expand All @@ -48,7 +47,7 @@
"themejson": "node ./bin/theme-json.js",
"lint:pkg-json": "wp-scripts lint-pkg-json",
"build": "npm run themejson && wp-scripts build --config ./bin/webpack.config.js --webpack-src-dir=src/blocks",
"start": "concurrently \"npm-watch themejson\" \"wp-scripts start --config ./bin/webpack.config.js --webpack-src-dir=src/blocks\"",
"watch": "nodemon --watch ./src --ext js,css,scss,jsonc --exec \"npm run build\""
"dev:compile": "concurrently \"npm run themejson\" \"wp-scripts start --config ./bin/webpack.config.js --webpack-src-dir=src/blocks --no-watch\"",
"start": "nodemon --watch ./src --ext js,css,scss,jsonc,php,json --exec \"npm run dev:compile\""
}
}

0 comments on commit a726f25

Please sign in to comment.