donejs: Nested less dependencies do not live-reload

module.js

import "./module.less";

module.less

@import "./other.less"

If other.less changes it will not be reflected in live-reload either on the client or server. Effectively meaning the only way to see the changes is to restart the server (or use development.html).

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Comments: 15 (13 by maintainers)

Most upvoted comments

I have this working in a prerelease. If you update your dependencies to:

"dependencies": {
  ...
  "steal": "pre"
},
"devDependencies": {
  ...
  "steal-tools": "pre"
}

You can try it out. Will wait on some feedback before releasing.

Update: changed live-reload and steal-tools so that the includedDeps metadata property is used to know of dependencies that are not part of the normal dependency graph. Plugins can add this metadata and we’ll watch for these files and trigger reloads when they change, just like for normal deps.

Next need to update the less plugin so that it sets this metadata for its nested dependencies and test the entire flow.