Skip to content

Commit

Permalink
Adding null-loader before style-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Peralta committed Jul 25, 2019
1 parent fb71003 commit 1cdc87e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/webpack/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ environment.loaders.append('style', {
]
})

environment.loaders.append('null', {
const nullLoader = {
test: /\.css$/,
include: stylesheet => stylesheet.indexOf('@patternfly/react-styles/css/') > -1,
use: ['null-loader']
})
}
environment.loaders.insert('null', nullLoader, {before: 'style'})

module.exports = environment

0 comments on commit 1cdc87e

Please sign in to comment.