Skip to content

Commit

Permalink
feat: tenon-style-loader 支持传入外部配置
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamCaoQAQ committed Apr 3, 2024
1 parent 5c5fe1e commit cb232f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/plugin-build/src/config/tenon.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ export default function getDefaultTenonConfiguration(isProduction: boolean, hmCo
}, {
test: /\.css$/,
use: {
loader: path.join(require.resolve('@hummer/tenon-style-loader'))
loader: path.join(require.resolve('@hummer/tenon-style-loader')),
options: {
...(hmConfig.buildOptions?.tenonStyleLoaderOptions || {})
}
}
},]
},
Expand Down

0 comments on commit cb232f0

Please # to comment.