Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect reloading of LESS #31

Open
dangreen opened this issue Sep 10, 2014 · 1 comment
Open

Incorrect reloading of LESS #31

dangreen opened this issue Sep 10, 2014 · 1 comment

Comments

@dangreen
Copy link

<style type="text/css" id="less:style-style:less-livereload-1410346455570">...</style>
<style type="text/css" id="less:style-style">...</style>

to update(rewrite) styles you should push new styles after old

<style type="text/css" id="less:style-style">...</style>
<style type="text/css" id="less:style-style:less-livereload-1410346455570">...</style>

or you should remove old styles

@dangreen
Copy link
Author

Fix of this problem

// LessPlugin::reloadLess
if (links.length === 0) {
    return false;
}
// for (_i = 0, _len = links.length; _i < _len; _i++) {
//     link = links[_i];
//     link.href = this.host.generateCacheBustUrl(link.href);
// }
// this.host.console.log("LiveReload is asking LESS to recompile all stylesheets");
// this.window.less.refresh(true);
this.window.less.refresh();
return true;

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

No branches or pull requests

1 participant