Closed webdiscus closed 2 years ago
Using Webpack auto publicPath the image output filename is wrong.
module.exports = { output: { path: path.resolve(__dirname, 'dist'), publicPath: 'auto', }, module: { rules: [ { test: /\.(png|jpe?g)$/i, type: 'asset/resource', loader: 'responsive-loader', options: { //publicPath: 'auto', // <-- What value should be here when used auto publicPath? name: 'assets/img/[name].[hash:8]-[width]w.[ext]', }, }, ], }, }
Using Webpack auto publicPath the image output filename is wrong.