isomorphic-style-loader
isomorphic-style-loader copied to clipboard
Use on .less files
Hi, folks! Do you have any ideas how to use this loader on .less styles? Is it even possible?
Just use less loader in front of it, for example:
rules: [
// Convert CSS into JS module
{
test: /\.(css|less|styl|scss|sass|sss)$/,
loader: 'isomorphic-style-loader',
},
// any other css loaders here
// Compile Less to CSS via https://github.com/webpack-contrib/less-loader
{
test: /\.less$/,
loader: 'less-loader',
},
]
@frenzzy It is not working? Can you please all step? Thank you.
It works fine, all you need is in the example above. Another example is here: react-starter-kit/tools/webpack.config.js
@frenzzy Thank you for your quick replay. Yes I have added that but this does compile and run less css