metaskills / less-rails

:-1: :train: Less.js For Rails

Home Page:http://github.com/metaskills/less-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to update less.modifyVars with Rails 4

viveks1422 opened this issue · comments

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

Hi Any update?

I think no one is taking care of that?

ℹ️ no activity for years, closing