Skip to content

Commit

Permalink
feat: tenon style plugin插件配置传入
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamCaoQAQ committed Apr 9, 2024
1 parent bc82975 commit 0920ced
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/plugin-build/src/config/tenon.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ export default function getDefaultTenonConfiguration(isProduction: boolean, hmCo
},]
},
plugins: [
new TenonStylePlugin(),
new TenonStylePlugin({
...(hmConfig.buildOptions?.tenonStyleLoaderOptions || {})
}),
new VueLoaderPlugin(),
new DefinePlugin({
"NODE_DEBUG_ENV": JSON.stringify(isProduction ? false : true), // 控制是否注入 DevTool
Expand Down

0 comments on commit 0920ced

Please # to comment.