修改配置
Showing
build/webpack.base.js
0 → 100644
File moved
File moved
... | ... | @@ -70,20 +70,26 @@ |
"workbox-webpack-plugin": "^4.3.1" | ||
}, | ||
"scripts": { | ||
"start": "webpack-dev-server --config ./config/webpack.dev.js", | ||
"dev": "webpack-dev-server --config ./config/webpack.dev.js", | ||
"start": "better-npm-run build:dev", | ||
"dev": "better-npm-run build:dev", | ||
"build:test": "better-npm-run build:test", | ||
"build:prod": "better-npm-run build:test" | ||
"build:prod": "better-npm-run build:prod" | ||
}, | ||
"betterScripts": { | ||
"build:dev": { | ||
"command": "webpack --config ./build/webpack.dev.js", | ||
"env": { | ||
"ENV_MARK": "development" | ||
} | ||
}, | ||
"build:test": { | ||
"command": "webpack --config ./config/webpack.prod.js", | ||
"command": "webpack --config ./build/webpack.prod.js", | ||
"env": { | ||
"ENV_MARK": "testing" | ||
} | ||
}, | ||
"build:prod": { | ||
"command": "webpack --config ./config/webpack.prod.js", | ||
"command": "webpack --config ./build/webpack.prod.js", | ||
"env": { | ||
"ENV_MARK": "production" | ||
} | ||
... | ... | @@ -92,7 +98,9 @@ |
"devDependencies": { | ||
"@babel/plugin-syntax-dynamic-import": "^7.2.0", | ||
"better-npm-run": "^0.1.1", | ||
"preload-webpack-plugin": "^3.0.0-beta.3" | ||
"copy-webpack-plugin": "^5.0.3", | ||
"preload-webpack-plugin": "^3.0.0-beta.3", | ||
"webpack-merge": "^4.2.1" | ||
}, | ||
"theme": { | ||
"brand-primary": "red", | ||
... | ... |
Please
register
or
sign in
to comment