webpack/examples/asset-simple/webpack.config.js

17 lines
202 B
JavaScript

module.exports = {
output: {
assetModuleFilename: "images/[hash][ext]"
},
module: {
rules: [
{
test: /\.(png|jpg|svg)$/,
type: "asset"
}
]
},
experiments: {
asset: true
}
};