chore: 更新依赖
Showing
3 changed files
with
1 additions
and
11 deletions
... | @@ -13,7 +13,7 @@ | ... | @@ -13,7 +13,7 @@ |
13 | }, | 13 | }, |
14 | "dependencies": { | 14 | "dependencies": { |
15 | "amfe-flexible": "^2.2.1", | 15 | "amfe-flexible": "^2.2.1", |
16 | "axios": "^0.27.2", | 16 | "axios": "^1.3.4", |
17 | "core-js": "^3.23.3", | 17 | "core-js": "^3.23.3", |
18 | "regenerator-runtime": "^0.13.5", | 18 | "regenerator-runtime": "^0.13.5", |
19 | "vant": "^2.12.48", | 19 | "vant": "^2.12.48", | ... | ... |
... | @@ -142,16 +142,6 @@ module.exports = defineConfig({ | ... | @@ -142,16 +142,6 @@ module.exports = defineConfig({ |
142 | .when(!IS_PROD, config => config.devtool('cheap-source-map')) | 142 | .when(!IS_PROD, config => config.devtool('cheap-source-map')) |
143 | 143 | ||
144 | config.when(IS_PROD, config => { | 144 | config.when(IS_PROD, config => { |
145 | config | ||
146 | .plugin('ScriptExtHtmlWebpackPlugin') | ||
147 | .after('html') | ||
148 | .use('script-ext-html-webpack-plugin', [ | ||
149 | { | ||
150 | // 将 runtime 作为内联引入不单独存在 | ||
151 | inline: /runtime\..*\.js$/ | ||
152 | } | ||
153 | ]) | ||
154 | .end() | ||
155 | config.optimization.splitChunks({ | 145 | config.optimization.splitChunks({ |
156 | chunks: 'all', | 146 | chunks: 'all', |
157 | cacheGroups: { | 147 | cacheGroups: { | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment