madskristensen / LessCompiler

A Visual Studio extension
Other
15 stars 8 forks source link

Sometimes imported files don't trigger Less to be transpiled #4

Open PonchoPowers opened 7 years ago

PonchoPowers commented 7 years ago

If I have a file which imports other files called Site.less, and when I update one of the imported file, the Site.less file doesn't always get transpiled to CSS. To fix, I have to restart Visual Studio. There are no build errors.

Take for example the following: Site.less

// lessc "../../../content/css/site.css"
@import 'Mixins.less';
@import 'Base.less';

Base.less

// no-compile
body {background: red}

Mixins.less

// no-compile
p {background: blue}

When Mixins.less is updated, will Site.Less isn't always transpiled and there appears to be no pattern as to why.