Skip to content

Fix separation of loaders - #77

Merged
joshwnj merged 2 commits into
css-modules:masterfrom
tjallingt:master
Feb 3, 2016
Merged

joshwnj merged 2 commits into
css-modules:masterfrom
tjallingt:master

Conversation

@tjallingt

Copy link
Copy Markdown
Contributor

Fixes #76
(also included some code style fixes as suggested by the linter)

@huan086

huan086 commented Jan 25, 2016

Copy link
Copy Markdown

It works. Thanks!
However, for this to work, output cannot be optional, so the docs needs to updated too

output: path to write the generated css. If not provided, you'll need to listen to the 'css stream' event on the bundle to get the output.

@joeybaker

Copy link
Copy Markdown
Contributor

FWIW, output is optional so that you can get the output as a stream instead of a file. It would be great if the solution worked for both of these use-cases.

@tjallingt

Copy link
Copy Markdown
Contributor Author

As far as I can tell it doesn't change the functionality when not given a cssOutFilename as it will just store the loader the same as before. This fix only changes the functionality of the code when presented with multiple different cssOutFilenames....

@joeybaker

Copy link
Copy Markdown
Contributor

cool beans.

@joshwnj

joshwnj commented Feb 3, 2016

Copy link
Copy Markdown
Member

Thanks for these updates @tjallingt , and for being patient while I got some time to review :)

joshwnj added a commit that referenced this pull request Feb 3, 2016
Fix separation of loaders
@joshwnj
joshwnj merged commit f306d5f into css-modules:master Feb 3, 2016
@joshwnj

joshwnj commented Feb 3, 2016

Copy link
Copy Markdown
Member

published v0.17.0

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.

Multiple browserify instances get mixed up

4 participants