Skip to content

Commit

Permalink
fix(less-modules): fix less-loader options
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 30, 2021
1 parent 6576436 commit 5f8ac83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/less-modules/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const createLessModule = (lessLoaderOptions = {} as LessLoaderOptions) => {
shouldUseSourceMap: options.shouldUseSourceMap,
miniCssExtractPluginLoader: MiniCssExtractPlugin.loader,
preProcessorOptions: {
implementation: require.resolve('less'),
...lessLoaderOptions,
},
},
Expand Down Expand Up @@ -82,6 +83,7 @@ const createLessModule = (lessLoaderOptions = {} as LessLoaderOptions) => {
shouldUseSourceMap: options.shouldUseSourceMap,
miniCssExtractPluginLoader: MiniCssExtractPlugin.loader,
preProcessorOptions: {
implementation: require.resolve('less'),
...lessLoaderOptions,
},
},
Expand Down

0 comments on commit 5f8ac83

Please sign in to comment.