fix: 修复依赖问题

This commit is contained in:
chenjinsong
2023-10-10 15:24:53 +08:00
parent f939d344fa
commit faae781f42

View File

@@ -1,4 +1,5 @@
const path = require('path') const path = require('path')
const webpack = require('webpack')
function resolve (dir) { function resolve (dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
@@ -15,6 +16,9 @@ module.exports = {
chainWebpack: (config) => { chainWebpack: (config) => {
config.resolve.alias // 路径别名 config.resolve.alias // 路径别名
.set('@', resolve('./src')) .set('@', resolve('./src'))
config.plugin('webpack.DefinePlugin').use(new webpack.DefinePlugin({
__INTLIFY_PROD_DEVTOOLS__: JSON.stringify(false)
}))
}, },
lintOnSave: true, lintOnSave: true,
devServer: { devServer: {