Answer the question
In order to leave comments, you need to log in
How to move the webpack task to a separate command?
I have two options for processing sass in my webpack config:
working, the one on which I typeset is usually
commented out, when the customer requires a separate css file
Is it possible to do something so that I don’t have to edit the config every time, but let’s put it in a separate command, .e. By default, it fulfills the first option and compiles a separate file on command?
{
test: /\.scss$/,
use: [{
loader: "style-loader"
}, {
loader: "postcss-loader"
}, {
loader: "sass-loader"
}]
},
// {
// test: /\.scss$/,
// use: ExtractTextPlugin.extract({
// fallback: 'style-loader',
// use: ['postcss-loader', 'sass-loader']
// })
// },
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