Merge branch 'feat/liujie'

This commit is contained in:
2025-09-12 17:10:03 +08:00
2 changed files with 25 additions and 5 deletions

View File

@@ -1,6 +1,26 @@
import type { UserConfigExport } from "@tarojs/cli"; import type { UserConfigExport } from "@tarojs/cli";
export default { export default {
mini: {}, mini: {
webpackChain: (chain, webpack) => {
chain.merge({
plugin: {
install: {
plugin: require('terser-webpack-plugin'),
args: [
{
terserOptions: {
compress: true, // 默认使用terser压缩
// mangle: false,
keep_classnames: true, // 不改变class名称
keep_fnames: true, // 不改变函数名称
},
},
],
},
},
})
}
},
h5: { h5: {
/** /**
* WebpackChain 插件配置 * WebpackChain 插件配置

View File

@@ -1,4 +1,4 @@
@font-face { // @font-face {
font-family: 'PoetsenOne'; // font-family: 'PoetsenOne';
src: url('./static/asserts/fonts/PoetsenOne-Regular.ttf') format('truetype'); // src: url('./static/asserts/fonts/PoetsenOne-Regular.ttf') format('truetype');
} // }