代码拉取完成,页面将自动刷新
同步操作将从 iot20201001/service_admin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/**
* 配置参考: 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
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。