Hello there,
I'm wondering if there is an option to extract and combine LESS files from my multiple components into one uncompiled LESS file?
Question: Why do you need to do that?
Answer: I'm building a React component library and would like to keep variables and mixins untouched. After importing the library into a project, I would like to import one LESS file and override variable values with !default.
Thanks!
Ugo
Webpack module and plugins
module: {
rules: [
{
test: /\.s?[ac]ss$/,
use: [
MiniCssExtractPlugin.loader,
{ loader: 'css-loader', options: { url: false, sourceMap: true } },
{ loader: 'sass-loader', options: { sourceMap: true } }
],
},
]
},
plugins: [
new MiniCssExtractPlugin({
filename: "style.scss"
})
],
Most helpful comment
Webpack module and plugins