init
This commit is contained in:
33
vue.config.js
Normal file
33
vue.config.js
Normal file
@@ -0,0 +1,33 @@
|
||||
module.exports = {
|
||||
publicPath: process.env.VUE_APP_PATH,
|
||||
lintOnSave: false,
|
||||
css: {
|
||||
loaderOptions: {
|
||||
sass: {
|
||||
implementation: require('sass'), // This line must in sass option
|
||||
}
|
||||
}
|
||||
},
|
||||
transpileDependencies: [
|
||||
'monaco-editor',
|
||||
'@jiaminghi/data-view'
|
||||
],
|
||||
chainWebpack: (config) => {
|
||||
//忽略的打包文件
|
||||
config.externals({
|
||||
'vue': 'Vue',
|
||||
'vue-router': 'VueRouter',
|
||||
'vuex': 'Vuex',
|
||||
'axios': 'axios',
|
||||
'element-ui': 'ELEMENT',
|
||||
})
|
||||
const svgRule = config.module.rule("svg");
|
||||
svgRule.uses.clear();
|
||||
svgRule
|
||||
.use("svg-sprite-loader")
|
||||
.loader("svg-sprite-loader")
|
||||
.options({
|
||||
symbolId: "icon-[name]"
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user