Skip to content

Commit

Permalink
Adding null-loader with same one-line style
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Peralta committed Jul 29, 2019
1 parent 1cdc87e commit 3ca4741
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions config/webpack/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ environment.loaders.delete('moduleCss')
environment.loaders.delete('sass')
environment.loaders.delete('moduleSass')

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

environment.loaders.append('style', {
test: /(\.css|\.scss|\.sass)$/,
use: [
Expand All @@ -25,11 +31,4 @@ environment.loaders.append('style', {
]
})

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 3ca4741

Please sign in to comment.