Webpack LESS-Loader, Keep LESS Variable unchanged

417 Views Asked by At

I am using Webpack 3 with LESS-loader. I know LESS-Loader compiles the less file to CSS file. But As I am new to Webpack, I don't know how can I keep the LESS variable as it is and later modify it with JavaScript.

I had used ModifyVar and passed it using webpack and it worked. However I want to dynamically change the CSS. Like Server will send me the path of Theme CSS (Updated Variable values) and I will import it using LESS + JS.

Any help will be appreciated. I had search over Google as well as StackOverflow, In case of duplicate please comment and give me the correct URL.

0

There are 0 best solutions below