mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-11 03:33:48 +08:00
完成前后端框架搭建,完成聊天页面布局
This commit is contained in:
29
web/vue.config.js
Normal file
29
web/vue.config.js
Normal file
@@ -0,0 +1,29 @@
|
||||
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: process.env.NODE_ENV === 'production'
|
||||
? '/web'
|
||||
: '/',
|
||||
|
||||
outputDir: 'dist',
|
||||
crossorigin: "anonymous",
|
||||
devServer: {
|
||||
allowedHosts: ['127.0.0.1:5678'],
|
||||
port: 8888,
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user