1 Star 0 Fork 0

范禀坤/后台管理base

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
范禀坤 提交于 2020-05-07 14:44 . xiugai
const path = require('path')
const TerserPlugin = require('terser-webpack-plugin')
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const webpack = require('webpack')
function resolve (dir) {
return path.join(__dirname, dir)
}
module.exports = {
configureWebpack: {
plugins: [
// new BundleAnalyzerPlugin(),
new webpack.ProvidePlugin({
'window.Quill': 'quill/dist/quill.js',
'Quill': 'quill/dist/quill.js'
}),
],
// externals: {
// 'Quill': 'Quill'
// },
optimization: {
// splitChunks: {
// cacheGroups: {
// commons: {
// test: /[\\/]node_modules[\\/]quill/,
// name: 'vendors',
// chunks: 'all'
// }
// }
// },
// minimize: true,
minimizer: [
new TerserPlugin({
// sourceMap: true,
terserOptions: {
compress: {
drop_console: true,
},
},
})
]
}
},
productionSourceMap: false,
// devServer: {
// proxy: {
// '/api': {
// target: 'http://192.168.1.204:80',
// pathRewrite: { '^/api': '' }
// }
// }
// },
chainWebpack: config => {
config.resolve.alias
.set('@', resolve('src'))
.set('api', resolve('src/api'))
.set('common', resolve('src/common'))
.set('components', resolve('src/components'))
.set('assets', resolve('src/assets'))
.set('views', resolve('src/views'))
},
pluginOptions: {
'style-resources-loader': {
preProcessor: 'scss',
patterns: [
path.resolve(__dirname, './src/common/styles/variable.scss'),
path.resolve(__dirname, './src/common/styles/mixin.scss')
]
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/FanBingKun/background_management_base.git
[email protected]:FanBingKun/background_management_base.git
FanBingKun
background_management_base
后台管理base
master

搜索帮助