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
2024-03-26 17:06:32 +08:00

34 lines
739 B
JavaScript

const path = require('path')
const webpack = require('webpack')
function resolve (dir) {
return path.join(__dirname, dir)
}
module.exports = {
transpileDependencies: ['/@intlify'],
css: {
sourceMap: false // 开启浏览器调试css定位
},
chainWebpack: (config) => {
config.resolve.alias // 路径别名
.set('@', resolve('./src'))
config.plugin('webpack.DefinePlugin').use(new webpack.DefinePlugin({
__INTLIFY_PROD_DEVTOOLS__: JSON.stringify(false)
}))
},
lintOnSave: true,
devServer: {
port: 80
},
configureWebpack: {
module: {
rules: [
{
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto'
}
]
}
}
}