27 Star 742 Fork 64

程序员小白条 / GPT智能图书管理系统前台Vue2-SpringBoot2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
程序员小白条 提交于 2023-05-20 14:00 . 2023年5月20日版本更新
const { defineConfig } = require('@vue/cli-service')
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
const path = require('path')
module.exports = defineConfig({
configureWebpack: {
plugins: [new NodePolyfillPlugin()],
resolve: {
alias: {
"@": path.resolve("./src") // 相对路径别名配置,使用 @ 代替 src
}
},
},
transpileDependencies: true,
lintOnSave: false,
devServer: {
host: '0.0.0.0',
port: 8081,
client: {
webSocketURL: 'ws://0.0.0.0/ws',
},
},
chainWebpack:config =>{
//发布模式
config.when(process.env.NODE_ENV === 'production',config =>{
config.entry('app').clear().add('./src/main-prod.js')
config.plugin('html').tap(args => {
args[0].isProd = true
return args
})
})
//开发模式
config.when(process.env.NODE_ENV === 'development',config =>{
config.entry('app').clear().add('./src/main-dev.js')
config.plugin('html').tap(args => {
args[0].isProd = false
return args
})
})
}
})
HTML/CSS
1
https://gitee.com/falle22222n-leaves/vue_-book-manage-system.git
git@gitee.com:falle22222n-leaves/vue_-book-manage-system.git
falle22222n-leaves
vue_-book-manage-system
GPT智能图书管理系统前台Vue2-SpringBoot2
master

搜索帮助