mirror of
https://gitee.com/blackfox/geekai.git
synced 2024-12-02 12:17:42 +08:00
27 lines
639 B
JavaScript
27 lines
639 B
JavaScript
const {defineConfig} = require('@vue/cli-service')
|
|
let webpack = require('webpack')
|
|
// const fs = require('fs')
|
|
// const path = require('path')
|
|
// const os = require('os')
|
|
|
|
module.exports = defineConfig({
|
|
transpileDependencies: true,
|
|
configureWebpack: {
|
|
// disable performance hints
|
|
performance: {
|
|
hints: false
|
|
},
|
|
plugins: [
|
|
new webpack.optimize.MinChunkSizePlugin({minChunkSize: 10000})
|
|
]
|
|
},
|
|
|
|
publicPath: '/chat',
|
|
outputDir: '../dist',
|
|
crossorigin: "anonymous",
|
|
devServer: {
|
|
allowedHosts: ['127.0.0.1:5678'],
|
|
port: 8888,
|
|
}
|
|
})
|