mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-17 16:56:38 +08:00
30 lines
759 B
JavaScript
30 lines
759 B
JavaScript
const {defineConfig} = require('@vue/cli-service')
|
|
let webpack = require('webpack')
|
|
module.exports = defineConfig({
|
|
transpileDependencies: true,
|
|
lintOnSave: false, //关闭eslint校验
|
|
configureWebpack: {
|
|
// disable performance hints
|
|
performance: {
|
|
hints: false
|
|
},
|
|
plugins: [
|
|
new webpack.optimize.MinChunkSizePlugin({minChunkSize: 10000})
|
|
],
|
|
// resolve: {
|
|
// fallback: {
|
|
// fs: false,
|
|
// path: require.resolve('path-browserify')
|
|
// }
|
|
// }
|
|
},
|
|
|
|
publicPath: '/',
|
|
outputDir: 'dist',
|
|
crossorigin: "anonymous",
|
|
devServer: {
|
|
allowedHosts: ['127.0.0.1:5678'],
|
|
port: 8888,
|
|
}
|
|
})
|