Closed p2227 closed 7 years ago
Hi @p2227, Thank you for the detailed issue :)
It definitely looks wrong, I will investigate it Is that something that was introduced by a recent release?
@mastilver v1.2.1 does not have this problem., this regression is new in v1.3.0.
Starting from v1.3.0, no longer works with inline-chunk-manifest-html-webpack-plugin
Usage example:
const ManifestPlugin = require ( 'webpack-manifest-plugin' );
const InlineChunkManifestHtmlWebpackPlugin = require ( 'inline-chunk-manifest-html-webpack-plugin' );
...
plugins: [
new InlineChunkManifestHtmlWebpackPlugin ( {
manifestPlugins : [
new ManifestPlugin ( { publicPath } ),
],
manifestVariable: 'manifest'
} ),
]
...
@mastilver this is my first time using webpack-manifest-plugin
.
Hi @mastilver, it looks like the default manifest reduce function is assigning the wrong way by doing :
manifest[file.name] = file.path;
instead of
manifest[file.path] = file.name;
It comes from #66 : https://github.com/danethurber/webpack-manifest-plugin/pull/66/files#diff-f85c36a1cc8952fb5e6fc7200a89ceaaR138
@mastilver quick fix PR : #71
@Batbold-Gansukh Opened an issue there #72, will fix asap
1.3.1 released :)
clone this repository https://github.com/p2227/react-starter-kit/
run
i will got the
manifest.json
but i expect
node v8.2.1 , mac 10.12.5