This commit is contained in:
jiangyinzhi
2024-09-03 15:28:55 +08:00
parent 0095c6ecba
commit be8a167fd0
13 changed files with 392 additions and 28 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ const resolve = dir => path.join(__dirname, dir)
const webpack = require('webpack')
// eslint-disable-next-line no-unused-vars
const pkgInfo = require('./package.json')
const port = 6600 // 端口
const port = 9527 // 端口
module.exports = {
assetsDir: 'asset',
@@ -24,7 +24,7 @@ module.exports = {
lintOnSave: false,
publicPath: '',
chainWebpack: config => {
config.plugin('webpack-bundle-analyzer').use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin),
// config.plugin('webpack-bundle-analyzer').use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin),
config.plugins.delete('preload')
config.plugins.delete('prefetch')
// config.module.rule("js").include.add(resolve("./node_modules/resize-detector/esm/index.js","./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./node_modules/cube-ui/src/components/loading/loading.vue?vue&type=script&lang=js&")).add(resolve("src"))