In my project, there is a '/lib/css' folder. When I write less code in 'src' folder, I prefer
to
@import '../../../lib/css/some.less'
so, In my webpack.conf.js
{
test: /\.less$/,
loader: 'style!css!less?{"paths": ["./lib/css"]}'
}
according to less option usage (see http://lesscss.org/usage/#command-line-usage-options) and README.md (https://github.com/webpack/less-loader#less-options), but it seems doesn't work.
PS: loader: 'style!css!less?paths=["./lib/css"]}' also doesn't work
Is anything wrong ? Please help me out.
In my project, there is a '/lib/css' folder. When I write less code in 'src' folder, I prefer
to
so, In my webpack.conf.js
according to less option usage (see http://lesscss.org/usage/#command-line-usage-options) and README.md (https://github.com/webpack/less-loader#less-options), but it seems doesn't work.
Is anything wrong ? Please help me out.