Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Watch @import files #128

Open
gr0uch opened this issue Jun 10, 2015 · 4 comments
Open

Watch @import files #128

gr0uch opened this issue Jun 10, 2015 · 4 comments

Comments

@gr0uch
Copy link

gr0uch commented Jun 10, 2015

Currently, the --watch option watches only the specified file even if there are @import statements in the file. Should it also watch files that are included via @import? I'd be interested in this feature and could put together a pull request if needed.

@Siilwyn
Copy link

Siilwyn commented Jun 12, 2015

Currently you can get this working with a watcher to run myth whenever a CSS file other than the one myth outputs changes. It would be nice if myth supports this though I think the whole --watch option isn't really needed, it's better to do one thing well and let the watching be done by a separate module.

@MoOx
Copy link
Contributor

MoOx commented Jun 12, 2015

FYI, cssnext --watch handle imports the right way ;)

@Siilwyn
Copy link

Siilwyn commented Jun 12, 2015

@MoOx thanks for pointing that out, it looks like it handles a lot of things in a better way. I switched.

@ianstormtaylor
Copy link
Contributor

@0x8890 good call, would love a PR for this!

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

No branches or pull requests

4 participants