1 Star 0 Fork 4

PayNeXss / saber_1

forked from FZSJPT / saber 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
jinxl 提交于 2021-08-23 10:11 . 最新代码
const webpack = require('webpack');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = {
// chainWebpack: (config) => {
// //忽略的打包文件
// config.externals({
// 'vue': 'Vue',
// 'vue-router': 'VueRouter',
// 'vuex': 'Vuex',
// 'axios': 'axios',
// 'element-ui': 'ELEMENT',
// });
// const entry = config.entry('app');
// entry.add('babel-polyfill').end();
// entry.add('classlist-polyfill').end();
// entry.add('@/mock').end();
// },
css: {
extract: true
},
//开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理
devServer: {
port: 1888,
proxy: {
'/api': {
//本地服务接口地址
target: 'http://10.40.80.27:30362/',
ws: true,
pathRewrite: {
'^/api': '/'
}
}
}
},
configureWebpack: {
plugins: [
new webpack.ProvidePlugin({
$:"jquery",
jQuery:"jquery",
"windows.jQuery":"jquery"
}),
new MiniCssExtractPlugin({
ignoreOrder: true
})
]
}
};
1
https://gitee.com/paynexss/saber_1.git
git@gitee.com:paynexss/saber_1.git
paynexss
saber_1
saber_1
master

搜索帮助