This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cyber-narrator-cn-ui/vue.config.js

34 lines
739 B
JavaScript
Raw Normal View History

2021-06-07 18:35:16 +08:00
const path = require('path')
2023-10-09 19:24:44 +08:00
const webpack = require('webpack')
2021-06-07 18:35:16 +08:00
function resolve (dir) {
return path.join(__dirname, dir)
}
module.exports = {
2023-10-08 14:25:58 +08:00
transpileDependencies: ['/@intlify'],
2021-06-07 18:35:16 +08:00
css: {
sourceMap: false // 开启浏览器调试css定位
2021-06-07 18:35:16 +08:00
},
chainWebpack: (config) => {
config.resolve.alias // 路径别名
.set('@', resolve('./src'))
2023-10-09 19:24:44 +08:00
config.plugin('webpack.DefinePlugin').use(new webpack.DefinePlugin({
__INTLIFY_PROD_DEVTOOLS__: JSON.stringify(false)
}))
2021-06-07 18:35:16 +08:00
},
lintOnSave: true,
devServer: {
port: 80
2024-02-26 11:51:13 +08:00
},
configureWebpack: {
module: {
rules: [
{
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto'
}
]
}
2021-06-07 18:35:16 +08:00
}
}