Use parcel/css to speed up performance #36105
-
Parcel css seems to be much more performant than cssnano and could be integrated in current webpack builds with this. I wonder how i can test this on Gatsby. I know I can change some of the webpack config but I wonder how i can plug myself in here and switch it.Unless i need to completely overwrite here https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/utils/webpack.config.js#L700 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This article should give you an idea: https://www.eduard.work/posts/adjust-css-minification-in-gatsby/ Please try it out, I'm curious if this would be beneficial for everyone! |
Beta Was this translation helpful? Give feedback.
This article should give you an idea: https://www.eduard.work/posts/adjust-css-minification-in-gatsby/
You can get the complete webpack config in the lifecycle and have to return a valid one, how you replace certain values in between is really up to you but all possible :)
Please try it out, I'm curious if this would be beneficial for everyone!