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

fix(v2): remove style-loader, use minicssextract in both dev & prod #2145

Merged
merged 1 commit into from
Dec 25, 2019

Conversation

endiliey
Copy link
Contributor

@endiliey endiliey commented Dec 25, 2019

Motivation

Close #2143
Close #2141

Remove style-loader and its annoying bug and use MiniCssExtractPlugin for both development and production environment.

The main reasons to use style-loader in development mode previously is to support hot module reloading but MiniCssExtractPlugin which is used for production build does support HMR feature since v0.6.0 (2019-04-10).

This ensures consistency

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

Local hmr still working
hmr dev

Production build styles should work OK (Netlify)

@endiliey endiliey added the pr: bug fix This PR fixes a bug in a past release. label Dec 25, 2019
@endiliey endiliey changed the title fix(v2): remove style-loader, use minicssextract in both dev & prod f… fix(v2): remove style-loader, use minicssextract in both dev & prod Dec 25, 2019
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Dec 25, 2019
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit bf316f6

https://deploy-preview-2145--docusaurus-2.netlify.com

Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

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

Nice, welcome back <3

@yangshun yangshun merged commit b791572 into master Dec 25, 2019
@yangshun yangshun deleted the endi/stylehmr branch December 25, 2019 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Header position bug Certain CSS styles not loading in Docusaurus 2
4 participants