'Webpack won't compile my SASS with background-image and other img
This is my webpack.config.js
const path = require('path');
const miniCss = require('mini-css-extract-plugin');
module.exports = {
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [{
test:/\.(s*)css$/,
use: [
miniCss.loader,
'css-loader',
'sass-loader',
]
}]
},
plugins: [
new miniCss({
filename: 'style.css',
}),
]
};
What i must to add that my webpcak can compile background img and other type of img
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
