npm
npm i -D file-loader
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /.(png|jpg|gif|jpeg)$/,
use: {
loader: 'file-loader',
},
},
],
},
}
npm
npm i -D file-loader
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /.(png|jpg|gif|jpeg)$/,
use: {
loader: 'file-loader',
},
},
],
},
}