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