Answer the question
In order to leave comments, you need to log in
webpack. Compiling multiple Less into 1 css file?
Started to deal with Webpack. I want all less files to be compiled into one style.css when building.
src
----less
--------style.less
--------style.css
---------blocks
----------------header-block.less
----------------page-block.less
@import "blocks/header-block.less";
@import "blocks/page-block.less";
...
module: {
rules: [
{
test: /style\.less$/,
loader: 'less-loader'
}
]
}
src
----less
--------style.less
--------style.css
---------blocks
----------------header-block.less
----------------header-block.css
----------------page-block.less
----------------page-block.css
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question