Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Move style extraction conditionals from web into style-loader #1221
Previously the `NODE_ENV` check for determining whether to enable stylesheet extraction existed only in `@neutrinojs/web`, meaning that if `@neutrinojs/style-loader` was manually used (either on its own or in coordination with the web preset), then extraction would be incorrectly enabled in development. The `style.extract = false` shorthand of always disabling extraction still works, however `style.extract = true` must now be replaced by `style.extract.enabled = true` (though I believe that style is not likely to have been used by many projects, since it's more common to want to disable in production than enable in development).