shellscape / webpack-manifest-plugin

webpack plugin for generating asset manifests
MIT License
1.44k stars 184 forks source link

manifest.json generated with wrong filename #250

Closed Mukhametvaleev closed 3 years ago

Mukhametvaleev commented 3 years ago

const { WebpackManifestPlugin } = require('webpack-manifest-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin');

module.exports = { context: path.resolve(__dirname, 'src'), entry: ['./index.tsx'], mode: 'development', module: { rules: [ { exclude: /node_modules/, test: /.(ts|tsx)?$/, use: ['babel-loader', 'ts-loader'], }, ], }, plugins: [new CleanWebpackPlugin(), new WebpackManifestPlugin()], resolve: { extensions: ['.ts', '.tsx', '.js'], }, output: { path: path.resolve(__dirname, 'static/frontend/'), filename: '[name].[hash].js', }, };



### Expected Behavior
`{
  "main.js": "main.6b7fd6ac2fd4fec33833.js"
}`

### Actual Behavior
`{
  "main.js": "automain.6b7fd6ac2fd4fec33833.js"
}`

Weird "auto" prefix in filename as `publicPath`.
shellscape commented 3 years ago

Duplicate of #229. Please search issues before creating new ones.