F
F
flafy42019-09-28 17:51:57
css
flafy4, 2019-09-28 17:51:57

How to disable style minification in webpack?

This is the code in webpack.config.js
As a result of compilation, I get a minified version of styles.

module: {
        rules: [{
            test: /\.(sa|sc|c)ss$/,
            use: [
                'style-loader',
                {
                    loader: MiniCssExtractPlugin.loader
                },
                {
                    loader: "css-loader"
                },
                {
                    loader: "postcss-loader",
                    options: {
                        config: {
                            path: './'
                        }
                    }
                },
                {
                    loader: "sass-loader"
                }
            ]
        }]
    },

In which loder or where exactly should the minification option be set to false? I didn’t find this item in any documentation, and if I found something like this, it didn’t work ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Golub, 2019-09-28
@flafy4

mode: 'development'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question