-
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
Styles missing on production for SASS + CSS Module with gatsby-plugin-sass #4477
Comments
linmic
changed the title
Styles missing on production for SASS + CSS Module
Styles missing on production for SASS + CSS Module with gatsby-plugin-sass
Mar 12, 2018
Replacing |
There is an issue with a recent update of gatsby-plugin-sass the plugin author is looking into it A temporary solution is to specify the version of gatsby-plugin-sass #4457 |
Fixed in #4495. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
SASS + CSS Module cause issues on production build, part of styles are missing to be exact.
Steps to reproduce
gatsby new test
to create a new project.gatsby-plugin-sass
and add it togatsby-config.js
.styles.module.scss
undersrc/components/Header
with a simple.red { color: red; }
within.src/components/Header/index.js
,import styles from './styles.module.scss
, and use it anywhere you want.gatsby build
then servepublic
Expected result
Styles from layouts is missing from generated inline styles within
<style id="gatsby-inlined-css">
.e.g. Styles for
<body>
should exist.Actual result
It's gone.
Environment
1.9.231
1.1.45
8.9.4
macOS High Sierra
Minimum Reproducible Case
https://github.com/linmic/gatsby-module-issue
The text was updated successfully, but these errors were encountered: