Skip to content

Conversation

lottamus
Copy link
Collaborator

Currently in 5.8.1, CSS files are getting extracted in both node and prod stages. This results in two identical CSS files.

This PR removes ExtractCssChunks and ExtractTextPlugin when in the node stage.

How to reproduce

Run yarn run text-sample-build and notice it generates two CSS files with identical content.

image

image

image

@tannerlinsley
Copy link
Contributor

An excellent find! Great work.

@tannerlinsley tannerlinsley merged commit 1364ca4 into react-static:master Apr 20, 2018
@lottamus lottamus deleted the fix-double-css-generation branch April 20, 2018 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants