webpack sass generated file

0

I am compiling my SASS files with webpack, however the result of this file is a javascript file, is it possible that the output instead of being a javascript is a css file?

My webpack.config.js

                    {
                            test: /\.scss$/,
                            use: [
                                'style-loader',
                                'css-loader',
                                'postcss-loader',

                                'sass-loader',
                                {
                                    loader: 'sass-resources-loader',
                                    options: {
                                        // Provide path to the file with resources
                                        resources: paths.CSS +'/imports.scss',
                                    },
                                },
                            ],
                        },
    
asked by Pablo 23.04.2018 в 19:19
source

1 answer

0

Try to remove these two lines:

'style-loader',
'css-loader',
    
answered by 23.04.2018 в 19:36