Skip to content

feat: use htmlWebpackPlugin to inject manifest - #15

Open
ibufu wants to merge 1 commit into
soundcloud:masterfrom
ibufu:master
Open

feat: use htmlWebpackPlugin to inject manifest#15
ibufu wants to merge 1 commit into
soundcloud:masterfrom
ibufu:master

Conversation

@ibufu

@ibufu ibufu commented Aug 31, 2016

Copy link
Copy Markdown

No description provided.

@ibufu

ibufu commented Aug 31, 2016

Copy link
Copy Markdown
Author

If we use html-webpack-plugin, the html will like this:

<html>
<head>
...
<%=htmlWebpackPlugin.files.webpackManifest%>
</head>
...
</html>

then the output of html will be this:

<script>window.webpackManifest={0:"/chunkA.5a01e17b6e275935ba96.js",1:"/chunkB.7467bb5b474b78f777d7.js"}</script>

@jouni-kantola

jouni-kantola commented Apr 17, 2017

Copy link
Copy Markdown

FYI: inline-chunk-manifest-html-webpack-plugin now uses chunk-manifest-webpack-plugin internally for this exact purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants