Portal/potal_admin/vue.config.js
2025-03-10 17:41:02 +08:00

34 lines
786 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 配置参考: https://cli.vuejs.org/zh/config/
*/
const webpack = require('webpack')
module.exports = {
baseUrl: process.env.NODE_ENV === 'production' ? './' : '/',
chainWebpack: config => {
const svgRule = config.module.rule('svg')
svgRule.uses.clear()
svgRule
.test(/\.svg$/)
.use('svg-sprite-loader')
.loader('svg-sprite-loader')
config.plugin('provide').use(webpack.ProvidePlugin, [
{
'window.Quill': 'quill/dist/quill.js',
Quill: 'quill/dist/quill.js'
}
])
},
// 默认打开eslint效验如果需要关闭设置成false即可
lintOnSave: false,
productionSourceMap: false,
devServer: {
open: true,
port: 9091,
overlay: {
errors: true,
warnings: true
}
}
}