question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nested less dependencies do not live-reload

See original GitHub issue

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).

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
matthewpcommented, May 16, 2016

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.

1reaction
matthewpcommented, May 11, 2016

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Refresh less css which has other imported less files without ...
Possible setup is Node.js with Grunt which has grunt-contrib-less and grunt-reload modules installed. Your grunt.js config should look like this: module.exports ...
Read more >
Bundle Stylesheets and Add LiveReload With Rollup
I like it because it gives me access to the parts of LESS and Sass that I liked — nesting, simple variables —...
Read more >
The Best Way To Architect Your Angular Libraries
The ideas presented in this article are based on extensive experience from large enterprise environment (100 Angular SPAs and 30+ libs )…
Read more >
gajus/babel-plugin-react-css-modules - GitHub
If you are not familiar with CSS Modules, it is a concept of using a module ... babel-plugin-react-css-modules as a direct dependency of...
Read more >
Live Reload with Spring Boot Developer Tools - Configuration
Ensure that spring-boot-devtools is a dependency in the ... notice spurious errors during server restart, such as Could not navigate to …
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found