Skip to content

Commit

Permalink
Fix doc to follow options for css-loader v3 (#2362)
Browse files Browse the repository at this point in the history
  • Loading branch information
indigolain authored and gauravtiwari committed Nov 12, 2019
1 parent 13756f1 commit 749675d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/webpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,10 @@ const { environment } = require('@rails/webpacker')
const merge = require('webpack-merge')

const myCssLoaderOptions = {
modules: true,
modules: {
localIdentName: '[name]__[local]___[hash:base64:5]'
},
sourceMap: true,
localIdentName: '[name]__[local]___[hash:base64:5]'
}

const CSSLoader = environment.loaders.get('sass').use.find(el => el.loader === 'css-loader')
Expand Down

0 comments on commit 749675d

Please sign in to comment.