-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[gatsby-plugin-sass] new options & [gatsby-plugin-react-css-modules] new package #1900
Conversation
Deploy preview failed. Built with commit dd5b650a6dc2fd9cad51d17ae970ccc07820e69f https://app.netlify.com/sites/using-glamor/deploys/599e7c59424ef241a5709df2 |
Any possibility of viewing the build logs? |
This looks fantastic! Nice new options + great tests. gatsby-plugin-react-css-modules fills in another nice gap as well. On build problems — build issues on Netlify are rather opaque. I want to create a new build system for the example sites and will hopefully have time to build it soon. |
I merged in master which includes #1903 which was breaking builds. |
Oh and do you think that perhaps the [path] should be added by default to the css module paths? |
Re: adding |
Yeah, let's do it! Thanks! |
@KyleAMathews I noticed that gatsby-plugin-sass does not load any CSS preprocessors for the No Has
|
Hmm probably we do always want to set the null-loader as otherwise webpack will throw an error. Probably this hasn't been a problem for the sass loader as it'd only show up if someone imported a sass file into a But for completeness, yeah, the sass plugin should have a setting for develop-html. |
Deploy preview ready! Built with commit ac72be2 |
Closed this pull request and opened a new one: #1934 |
1. [gatsby-plugin-sass] new options
SASS defaults to 5 digits of precision, which is low enough to cause off-by-1px errors in Bootstrap. See:
I confirmed (by transpiling the
bootstrap-sass
package and looking at the maximum number of decimal places in the CSS output) that appending?precision=8
to thesass
Webpack loader increases the precision from 5 to 8.I also wanted to make
localIdentName
configurable—if a project has more than oneindex.module.scss
file (in different folders), for example, it would be helpful to add[path]
to the module class name.2. [gatsby-plugin-react-css-modules] new package
Gatsby plugin for babel-plugin-react-css-modules—see README.md for details.