V
V
Viktor Arkhipov2018-08-16 11:42:31
webpack
Viktor Arkhipov, 2018-08-16 11:42:31

How to minify sass in webpack?

Please tell me I can’t understand what the problem is, the .css file is collected but not minified:

{
                test: /\.scss$/,
                use: isProd
                    ? ExtractTextPlugin.extract({
                        fallback: 'vue-style-loader',
                        use: [
                            {
                                loader: 'css-loader',
                                options: { minimize: true }
                            },
                            'sass-loader'
                        ],
                    })
                    : ['vue-style-loader', 'css-loader', 'sass-loader']
            }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor Arkhipov, 2018-08-18
@paul-smith

The problem was solved by reinstalling the packages

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question