Skip to content

Commit

Permalink
Merge pull request #458 from boris-petrov/fix-style-loader-options
Browse files Browse the repository at this point in the history
Fix not passing the correct options to `style-loader` and `css-loader`
  • Loading branch information
ef4 authored Oct 11, 2021
2 parents 7f9de65 + b3cddba commit e46420f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/ember-auto-import/ts/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,14 @@ export default class WebpackBundler extends Plugin implements Bundler {
{
test: /\.css$/i,
use: [
{ loader: 'eai-style-loader', options: [...this.opts.packages].find(pkg => pkg.styleLoaderOptions) },
{ loader: 'eai-css-loader', options: [...this.opts.packages].find(pkg => pkg.cssLoaderOptions) },
{
loader: 'eai-style-loader',
options: [...this.opts.packages].find(pkg => pkg.styleLoaderOptions)?.styleLoaderOptions,
},
{
loader: 'eai-css-loader',
options: [...this.opts.packages].find(pkg => pkg.cssLoaderOptions)?.cssLoaderOptions,
},
],
},
],
Expand Down

0 comments on commit e46420f

Please sign in to comment.