-
Notifications
You must be signed in to change notification settings - Fork 0
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
SLB-201: remove copy operations and streamline artefacts #129
Conversation
76d946e
to
8a02150
Compare
Mistakenly added. They should be in @custom/schema
1784b11
to
972dc30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd do something with the css browser cache issue.
The rest looks awesome!
Also, could you assign it to me for a manual testing once it is deployed?
Otherwise we loose proper cache handling by webpack.
To avoid a warning in Gatsby, which runs the file trough PostCSS again. It shouldn't do that, but there is no way to stop it.
Gatsby's style handling assumes every component has its own stylesheet, and it would add only the required styles to each page. With Tailwind though, we have only one global stylesheet, and adding it inline everywhere achieves the opposite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Let's test on Prod 😁
apps/website/gatsby-browser.ts
Outdated
@@ -1,3 +1,5 @@ | |||
import './node_modules/@custom/ui/build/styles.css'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw that previously we imported it from both gatsby-browser and gatsby-ssr. Now it's gatsby-browser only. Not a mistake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was a mistake before.
@@ -38,6 +38,7 @@ export default { | |||
siteUrl: process.env.NETLIFY_URL, | |||
}, | |||
plugins: [ | |||
'gatsby-plugin-uninline-styles', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This plugin does the same thing you did in the beginning? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, the filename already contains the hash. I see.
Description of changes
@amazeelabs/gatsby-plugin-static-dirs
(to be moved tosilverback-mono
after review)prep
steps generate files outside of the current page, and make the consuming packages load them vianode_modules
instead.Motivation and context
How has this been tested?