soundcloud / chunk-manifest-webpack-plugin

Allows exporting a manifest that maps entry chunk names to their output files, instead of keeping the mapping inside the webpack bootstrap.
MIT License
395 stars 73 forks source link

Add option for path where manifest file should be created #5

Closed okonet closed 8 years ago

okonet commented 9 years ago

Right now it's created in output.path but my setup requires it in other location. It would be nice to be able to define the path where it should be created and pass it as option.

ezekielchentnik commented 8 years ago

you can make the filename relative to the output path, example:

new ChunkManifestPlugin({filename: './../chunk-manifest.json'})

output: { path: path.join(__dirname, '/build/static'), publicPath: '/search/', filename: hash + '.js', chunkFilename: hash + '.js' },

ends up in: /build/chunk-manifest.json

okonet commented 8 years ago

Thanks!