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

emit 'file' event for import dependencies #20

Closed
mattdesl opened this issue Sep 7, 2015 · 2 comments
Closed

emit 'file' event for import dependencies #20

mattdesl opened this issue Sep 7, 2015 · 2 comments
Assignees

Comments

@mattdesl
Copy link

mattdesl commented Sep 7, 2015

Using watchify, you will not get a re-bundle if you make a change in a CSS dependency - i.e. a style sheet that was brought in with an import() statement.

The solution for this tool is to emit a file event when a new dependency is discovered. See here and here.

Related:
mattdesl/budo#57

@cheton
Copy link
Owner

cheton commented Sep 8, 2015

Hi mattdesl,
Thanks for your reminding. I will check it out!

@cheton
Copy link
Owner

cheton commented Sep 8, 2015

The solution is included in v0.7.1
https://github.com/cheton/browserify-css/releases/tag/v0.7.1

Also see at https://github.com/cheton/browserify-css/blob/master/css-transform.js#L121

that.emit('file', absFilename);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants