feat: add router to detail and ignore css order problem

This commit is contained in:
2025-08-26 17:58:01 +08:00
parent 2a38b88d86
commit e51015b447
16 changed files with 209 additions and 608 deletions

View File

@@ -16,7 +16,7 @@ export default defineConfig<'webpack5'>(async (merge, { command, mode }) => {
750: 1,
375: 2,
828: 1.81 / 2,
390: 1.92
390: 1.92
},
sourceRoot: 'src',
outputRoot: 'dist',
@@ -66,9 +66,16 @@ export default defineConfig<'webpack5'>(async (merge, { command, mode }) => {
}
}
},
miniCssExtractPluginOption: {
ignoreOrder: true,
// filename: 'css/[name].[hash].css',
// chunkFilename: 'css/[name].[chunkhash].css'
},
webpackChain(chain) {
chain.resolve.plugin('tsconfig-paths').use(TsconfigPathsPlugin)
}
},
// @ts-expect-error: Taro 类型定义缺少 mini.hot
hot: true,
},
h5: {
publicPath: '/',