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",
|
"group": "none",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "watch",
|
||||||
|
"command": "npm",
|
||||||
|
"type": "shell",
|
||||||
|
"args": [
|
||||||
|
"run",
|
||||||
|
"watch"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "always"
|
||||||
|
},
|
||||||
|
"group": "none",
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "Build prod",
|
"label": "Build prod",
|
||||||
"command": "npm",
|
"command": "npm",
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"devServer": "webpack-dev-server --mode development --open",
|
"devServer": "webpack-dev-server --mode development --open",
|
||||||
"build": "webpack --mode development",
|
"build": "webpack --mode development",
|
||||||
"buildProd": "webpack --mode production"
|
"buildProd": "webpack --mode production",
|
||||||
|
"watch":"webpack --watch --mode production"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
@ -27,6 +27,9 @@ module.exports = {
|
|||||||
liveReload: true,
|
liveReload: true,
|
||||||
watchContentBase: true
|
watchContentBase: true
|
||||||
},
|
},
|
||||||
|
watchOptions: {
|
||||||
|
ignored: ['dist/**', 'node_modules/**']
|
||||||
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user