2023-03-17 14:17:27 +08:00
|
|
|
const {defineConfig} = require('@vue/cli-service')
|
|
|
|
let webpack = require('webpack')
|
|
|
|
module.exports = defineConfig({
|
|
|
|
transpileDependencies: true,
|
2023-06-15 09:41:30 +08:00
|
|
|
lintOnSave: false, //关闭eslint校验
|
2023-03-17 14:17:27 +08:00
|
|
|
configureWebpack: {
|
|
|
|
// disable performance hints
|
|
|
|
performance: {
|
|
|
|
hints: false
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new webpack.optimize.MinChunkSizePlugin({minChunkSize: 10000})
|
2023-06-19 11:09:23 +08:00
|
|
|
]
|
2023-03-17 14:17:27 +08:00
|
|
|
},
|
|
|
|
|
2023-06-19 11:09:23 +08:00
|
|
|
publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
|
|
|
|
|
2023-06-15 09:41:30 +08:00
|
|
|
outputDir: 'dist',
|
2023-03-17 14:17:27 +08:00
|
|
|
crossorigin: "anonymous",
|
|
|
|
devServer: {
|
|
|
|
allowedHosts: ['127.0.0.1:5678'],
|
|
|
|
port: 8888,
|
|
|
|
}
|
|
|
|
})
|