added webpack watch
This commit is contained in:
parent
ae289bf75b
commit
a5d72902e1
14
.vscode/tasks.json
vendored
14
.vscode/tasks.json
vendored
@ -15,6 +15,20 @@
|
||||
"group": "none",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "watch",
|
||||
"command": "npm",
|
||||
"type": "shell",
|
||||
"args": [
|
||||
"run",
|
||||
"watch"
|
||||
],
|
||||
"presentation": {
|
||||
"reveal": "always"
|
||||
},
|
||||
"group": "none",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Build prod",
|
||||
"command": "npm",
|
||||
|
@ -6,7 +6,8 @@
|
||||
"scripts": {
|
||||
"devServer": "webpack-dev-server --mode development --open",
|
||||
"build": "webpack --mode development",
|
||||
"buildProd": "webpack --mode production"
|
||||
"buildProd": "webpack --mode production",
|
||||
"watch":"webpack --watch --mode production"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
|
@ -27,6 +27,9 @@ module.exports = {
|
||||
liveReload: true,
|
||||
watchContentBase: true
|
||||
},
|
||||
watchOptions: {
|
||||
ignored: ['dist/**', 'node_modules/**']
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user