mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-14 17:41:45 +08:00
fix: 优化超包
This commit is contained in:
@@ -62,7 +62,10 @@ const config = {
|
||||
|
||||
defineConstants: getDefineConstants(CONST_ENVS),
|
||||
alias: {
|
||||
'@': path.join(__dirname, '../src')
|
||||
'taro-ui$': 'taro-ui/lib/index',
|
||||
'@': path.join(__dirname, '../src'),
|
||||
'lodash': 'lodash-es'
|
||||
|
||||
},
|
||||
copy: {
|
||||
patterns: copyPatterns
|
||||
@@ -74,9 +77,16 @@ const config = {
|
||||
],
|
||||
|
||||
mini: {
|
||||
// webpackChain(chain, webpack) {
|
||||
// chain.plugin('analyzer')
|
||||
// .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
|
||||
// },
|
||||
miniCssExtractPluginOption: {
|
||||
ignoreOrder: true
|
||||
},
|
||||
optimizeMainPackage: {
|
||||
enable: true
|
||||
},
|
||||
// 图片转换base64
|
||||
imageUrlLoaderOption: {
|
||||
limit: 0
|
||||
|
||||
14583
package-lock.json
generated
14583
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@@ -36,19 +36,9 @@
|
||||
"ios >= 8"
|
||||
],
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.7.7",
|
||||
"@reduxjs/toolkit": "^1.6.2",
|
||||
"@tarojs/cli": "3.4.3",
|
||||
"@tarojs/components": "3.4.3",
|
||||
"@tarojs/react": "3.4.3",
|
||||
"@tarojs/rn-runner": "^3.4.3",
|
||||
"@tarojs/runtime": "3.4.3",
|
||||
"@tarojs/taro": "3.4.3",
|
||||
"@tarojs/taro-rn": "^3.4.3",
|
||||
"axios": "^0.19.0",
|
||||
"azure-storage": "^2.10.3",
|
||||
"babel-preset-taro": "3.4.3",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"big.js": "^6.1.1",
|
||||
"classnames": "^2.2.6",
|
||||
"copy-to-clipboard": "^3.0.8",
|
||||
@@ -71,14 +61,20 @@
|
||||
"use-immer": "^0.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/runtime": "^7.7.7",
|
||||
"@tarojs/cli": "3.4.3",
|
||||
"@tarojs/components": "3.4.3",
|
||||
"@tarojs/mini-runner": "3.4.3",
|
||||
"@tarojs/react": "3.4.3",
|
||||
"@tarojs/runtime": "3.4.3",
|
||||
"@tarojs/taro": "3.4.3",
|
||||
"@tarojs/webpack-runner": "3.4.3",
|
||||
"@types/react": "^16.8.5",
|
||||
"@types/webpack-env": "^1.13.6",
|
||||
"babel-eslint": "^8.2.3",
|
||||
"babel-preset-env": "^1.6.1",
|
||||
"babel-preset-taro": "3.4.3",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"chalk": "^4.1.2",
|
||||
"cross-env": "^5.2.0",
|
||||
"dotenv-flow": "^3.1.0",
|
||||
|
||||
Reference in New Issue
Block a user