添加压缩

This commit is contained in:
huangge1199 2025-07-23 16:23:15 +08:00
parent 3ec479cd73
commit b7326998d5
5 changed files with 25 additions and 2 deletions

View File

@ -4,7 +4,17 @@ module.exports = {
},
defineConstants: {
},
mini: {},
mini: {
terser: {
enable: true,
config: {
compress: {
drop_console: true,
},
mangle: true,
}
}
},
h5: {
/**
* WebpackChain

View File

@ -4,6 +4,17 @@ export default defineAppConfig({
'pages/doQuestion/index',
'pages/result/index',
],
// subPackages: [
// {
// root: 'pages/doQuestion',
// pages: ['index'],
// },
// {
// root: 'pages/result',
// pages: ['index'],
// },
// ],
lazyCodeLoading: 'requiredComponents',
window: {
backgroundTextStyle: 'light',
navigationBarBackgroundColor: '#fff',

View File

@ -1,4 +1,6 @@
@import "~taro-ui/dist/style/index.scss";
@import "~taro-ui/dist/style/components/radio.scss";
@import "~taro-ui/dist/style/components/button.scss";
@import "~taro-ui/dist/style/components/icon.scss";
.at-button--primary {
background: #88619a !important;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 462 KiB