const path = require('path');
module.exports = {
entry: './src/scss/screen.scss',
output: {
filename: 'screen.css',
path: path.resolve(__dirname, 'dist'),
},
module: {
rules: [
{
test: /\.scss$/,
use: [
'style-loader',
'css-loader',
'sass-loader'
]
},
{
test: /\.jpg$/,
use: [
'file-loader',
],
},
]
}
};
This is my webpack.config.js
. When I try to compile the SCSS into CSS it creates the screen.css
file without any complaints, but the screen.css
contains javascript code (from one of the loaders I guess).
Is it even possible to use webpack when the project doesn't really have any javascript file? I just have SCSS Files and Images.