-
Notifications
You must be signed in to change notification settings - Fork 319
Implement mini-css-extract-plugin #228
Implement mini-css-extract-plugin #228
Conversation
…k4-mini-extract-css # Conflicts: # packages/next-css/css-loader-config.js # packages/next-css/index.js
✅ed by @alexindigo |
Wow that's a lot of Fixes! Excellent work, thank you for this awesome effort. |
Depends on vercel/next-plugins#228 Failing tests are expected as `@zeit/next-css` has to be updated/released first. This implements rendering of `.css` chunks. Effectively removing the custom document requirement when adding next-css/sass/less/stylus.
Is there a way to print the contents of the stylesheet inline right inside
See original discovery of this performance issue in #11 (comment). It'd be great to be able to use |
Has this come out in the latest release (v0.2) yet? |
You can use it in canary yarn add next@canary
yarn add -D @zeit/next-css@canary Don’t forget to upgrade other next plugins if you are using them. |
@kachkaev thank your for the tip. @timneutkens The last canary version of Before
After
Thank you! |
Fixes #127
Fixes #226
Fixes #71
Fixes #187
Fixes #205
Fixes #209
Fixes #196
Fixes #208
Fixes #193
Fixes #177
Fixes #192
Fixes #180
Fixes #170
Fixes #168
Fixes #145
Fixes #150
Fixes #64
Fixes #134
Fixes #11
_document.js
is no longer needed for next-css/sass/less/stylusDepends on vercel/next.js#4861
Breaking
commons-chunk-config.js
was removedcss-loader-config.js
no longer accepts theextractPlugin
parameter. The default configuration is now tailored to Next.js_document.js
is no longer needed, Next.js now knows how to handle.css
chunks attached to pagesChanges
Major
commons-chunk-config.js
was removedcss-loader-config.js
no longer accepts theextractPlugin
parameter. The default configuration is now tailored to Next.js_document.js
is no longer needed, Next.js now knows how to handle.css
chunks attached to pagesMinor