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

Let webpack see CSS from dependencies #892

Merged
merged 1 commit into from
Mar 17, 2017
Merged

Conversation

gigabo
Copy link
Contributor

@gigabo gigabo commented Mar 9, 2017

If a dep has CSS, makes sense to bundle it.

Fixes #878.

If a dep has CSS, makes sense to bundle it.

Fixes redfin#878.
@@ -181,7 +181,6 @@ function packageCodeForBrowser(entrypoints, outputDir, outputUrl, hot, minify, l
{
test: /\.css$/,
loader: extractTextLoader,

Choose a reason for hiding this comment

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

Please do not forget to remove the comma as well, we don't know when it breaks :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mtrabelsi Trailing commas in object literals are supported in node.

We actually require them in multi-line object literals like this specifically so we don't need to clutter our diffs with modification of the previous line when we add/remove the last item in an object literal. ;)

Thanks for the bug report and for looking at he patch!

@gigabo gigabo merged commit 7c6cf78 into redfin:master Mar 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue with the system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants