Imports are not updated when recompiling via the same (?) less object
See original GitHub issuebug report I write a compile tool for my project, it depend less.
my project style folder and files likes
- styles
_utils.less
index.less
and index.less
content is
@import "./utils"
I use less api to compile the less files like
let less=require('less');
//....
less.render(indexContent,options,(err,result)=>{
console.log(result.css)
});
when i change _utils.less
content , the above code will automatically execute
but since 3.0.x , when i change _utils.less
content ,the result.css
is the first time result, whatever change how many times.
but 2.7.x is ok, when i change _utils.less
content ,the result.css
also changed.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:11
- Comments:19 (6 by maintainers)
Top Results From Across the Web
How to re import an updated package while in Python ...
Python modules' code is recompiled and the module-level code reexecuted, defining a new set of objects which are bound to names in the...
Read more >Jupyter / IPython: After editing a module, changes are not ...
Suppose main imports A imports B imports C, and you edit B. There's a strong argument to be made that unless all the...
Read more >Invalid Objects - Ask TOM
I have noticed that using Powerbuilder application to access an invalid object does not automatically recompile the object, it gave a ora-20003 error ......
Read more >Command Line Usage - Less CSS
Compile .less files to .css using the command line. Heads up! ... When called with new values, the Less file is recompiled without...
Read more >importlib — The implementation of import — Python 3.11.1 ...
When reload() is executed: Python module's code is recompiled and the module-level code re-executed, defining a new set of objects which are bound...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In Node environment, manual clear less compile cached file:
@tiodot @hawkerboy7 @TigersWay Does this branch resolve the issue? If so, I’ll make a PR - please check this out - https://github.com/matthew-dean/less.js/commits/cache-modified