提交
This commit is contained in:
41
vue.config.js
Normal file
41
vue.config.js
Normal file
@@ -0,0 +1,41 @@
|
||||
const { defineConfig } = require('@vue/cli-service')
|
||||
const path = require('path')
|
||||
|
||||
module.exports = defineConfig({
|
||||
configureWebpack: {
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.join(__dirname, './src/')
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
css: {
|
||||
loaderOptions: {
|
||||
less: {
|
||||
lessOptions: {
|
||||
// 如果需要在全局引入变量文件,可以在此处添加
|
||||
// modifyVars: {
|
||||
// '@primary-color': '#1DA57A'
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
pluginOptions: {
|
||||
'style-resources-loader': {
|
||||
preProcessor: 'scss',
|
||||
patterns: []
|
||||
}
|
||||
},
|
||||
|
||||
chainWebpack: config => {
|
||||
config.module
|
||||
.rule('scss')
|
||||
.use('sass-loader')
|
||||
.loader('sass-loader')
|
||||
.end()
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user