1 Star 0 Fork 2

idoio_conn / service_admin

forked from iot20201001 / service_admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config copy.js 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
sy296565890 提交于 2020-09-26 13:48 . 初始化后台管理
/**
* 配置参考: https://cli.vuejs.org/zh/config/
*/
// https://stackoverflow.com/questions/61884293/how-to-fix-error-unexpected-usage-loading-foreign-module-for-monaco-editor-in-v
// https://stackoverflow.com/questions/61884293/how-to-fix-error-unexpected-usage-loading-foreign-module-for-monaco-editor-in-v
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')
// const PurgecssPlugin = require('purgecss-webpack-plugin')
module.exports = {
transpileDependencies: ['vuex-persist', 'vuex-persistedstate'],
configureWebpack: {
devtool: false,
optimization: {
splitChunks: {
minSize: 10000,
maxSize: 250000
},
nodeEnv: 'production',
minimize: true,
minimizer: [
new TerserPlugin({
extractComments: 'false',
parallel: true
})
],
removeEmptyChunks: true,
removeAvailableModules: true,
mergeDuplicateChunks: true
},
plugins: [
new MonacoWebpackPlugin({
languages: ['javascript', 'css', 'html', 'typescript', 'json'],
features: ['!gotoSymbol']
})
// new PurgecssPlugin({
// paths: glob.sync(`${PATHS.src}/**/*`, {
// nodir: true
// })
// })
]
},
baseUrl: process.env.NODE_ENV === 'production' ? './' : '/',
chainWebpack: config => {
const svgRule = config.module.rule('svg')
svgRule.uses.clear()
svgRule
.test(/\.svg$/)
.use('svg-sprite-loader')
.loader('svg-sprite-loader')
},
// 默认打开eslint效验,如果需要关闭,设置成false即可
lintOnSave: true,
productionSourceMap: false,
devServer: {
open: true,
port: 8001,
overlay: {
errors: true,
warnings: true
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/idoio_conn/service_admin.git
git@gitee.com:idoio_conn/service_admin.git
idoio_conn
service_admin
service_admin
develop

搜索帮助

344bd9b3 5694891 D2dac590 5694891