Unable to update less.modifyVars with Rails 4
viveks1422 opened this issue · comments
Vivek S commented
Hi @metaskills ,
here is my style.css.less
@Myvar: #2d5e8b;
.class1 {
background-color:@Myvar;
}
here I added the style in application.erb.html
<%= stylesheet_link_tag 'styles', media: 'all', 'data-turbolinks-track' => true, :rel => 'stylesheet/less' %>
here is my application.js
//= require jquery
//= require jquery_ujs
//= require less.min
//= require turbolinks
//= require_tree .
When I use this JS code
less.modifyVars({
'@Myvar': "#333"
});
I checked everything is working fine but view is not updating with new variable value. Why? please check
Vivek S commented
Hi Any update?
Vivek S commented
I think no one is taking care of that?
Josef Šimánek commented
ℹ️ no activity for years, closing