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

better css modules in SSR #6352

Merged
merged 2 commits into from
Jul 9, 2018
Merged

better css modules in SSR #6352

merged 2 commits into from
Jul 9, 2018

Conversation

jquense
Copy link
Contributor

@jquense jquense commented Jul 9, 2018

The current setup doesn't handle a lot of things, like images.

const loaderUtils = require(`loader-utils`)
const path = require(`path`)

module.exports = function(content) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the key change here removing this

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jul 9, 2018

Deploy preview for using-drupal ready!

Built with commit 2c909c6

https://deploy-preview-6352--using-drupal.netlify.com

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jul 9, 2018

Deploy preview for gatsbygram ready!

Built with commit 2c909c6

https://deploy-preview-6352--gatsbygram.netlify.com

Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

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

Nice!

This might fix the issues @ooloth is seeing in #6211

@@ -122,6 +123,8 @@ module.exports = async ({

const babelConfig = await createBabelConfig(program, stage)

const isSSR = stage === `build-html`
Copy link
Contributor

Choose a reason for hiding this comment

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

do you want to include develop-html here as well?

Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

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

Looks good to me! Merging and releasing.

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