Commit d0100803 authored by 郭志伟's avatar 郭志伟 Committed by 郝聪敏

build: 环境调整

parent 0a949121
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"scripts": { "scripts": {
"serve": "vue-cli-service serve --open", "serve": "vue-cli-service serve --open",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"report": "vue-cli-service build --report",
"release": "vue-cli-service build", "release": "vue-cli-service build",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
......
...@@ -3,9 +3,6 @@ const resolve = dir => path.join(__dirname, dir); ...@@ -3,9 +3,6 @@ const resolve = dir => path.join(__dirname, dir);
const IS_PROD = process.env.NODE_ENV === "production"; const IS_PROD = process.env.NODE_ENV === "production";
module.exports = { module.exports = {
configureWebpack: {
devtool: "source-map"
},
chainWebpack: config => { chainWebpack: config => {
config.plugin("html").tap(args => { config.plugin("html").tap(args => {
args[0].title = "芒果保险"; args[0].title = "芒果保险";
...@@ -66,6 +63,11 @@ module.exports = { ...@@ -66,6 +63,11 @@ module.exports = {
priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app
test: /[\\/]node_modules[\\/]@qg[\\/]_?cherry-ui(.*)/ // in order to adapt to cnpm test: /[\\/]node_modules[\\/]@qg[\\/]_?cherry-ui(.*)/ // in order to adapt to cnpm
}, },
// svg: {
// name: "chunk-svg",
// priority: 15,
// test: resolve("src/assets/icons/svg")
// },
commons: { commons: {
name: "chunk-commons", name: "chunk-commons",
test: resolve("src/components"), // can customize your rules test: resolve("src/components"), // can customize your rules
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment