Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

webpack 5 compile scss to css file

module.exports = {
    module: {
        rules: [{
            test: /.scss$/,
            use: [{
                loader: "sass-loader",
                options: {
                    minimize: true
                }
            }]
        }]
    }
};
 
PREVIOUS NEXT
Tagged: #webpack #compile #scss #css #file
ADD COMMENT
Topic
Name
6+3 =