Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly documents how to enable CSS modules #777

Merged
merged 2 commits into from
Sep 8, 2017

Conversation

ezuk
Copy link
Contributor

@ezuk ezuk commented Sep 8, 2017

This technique is shown in the document but I wanted to make it more explicit for CSS modules, as it seems like I was not the only one confused. ;)

This technique is shown in the document but I wanted to make it more explicit for CSS modules, as it seems like I was not the only one confused. ;)
docs/webpack.md Outdated
@@ -78,6 +78,31 @@ babelLoader.options.cacheDirectory = false
module.exports = environment
```

### Overriding Loader Options in Webpack 3+ (for CSS Modules etc.)

In Webpack 3+, if you'd like to specify additional or different options for a loader, editing the actual `config/webpack/{loader}.js` file is *not* the way to go.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets remove reference to this config/webpack/{loader}.js, since it no longer exists. All base loaders are inside npm module now.

@ezuk
Copy link
Contributor Author

ezuk commented Sep 8, 2017

@gauravtiwari thank you! How's this?

@gauravtiwari gauravtiwari merged commit ae84f5f into rails:master Sep 8, 2017
@gauravtiwari
Copy link
Member

@ezuk great thanks 🍰 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants