Skip to content

Instantly share code, notes, and snippets.

@kilgarenone
Created May 26, 2019 10:19
Show Gist options
  • Save kilgarenone/7b1fcc7c7cd9bd699f31f0363188fb10 to your computer and use it in GitHub Desktop.
Save kilgarenone/7b1fcc7c7cd9bd699f31f0363188fb10 to your computer and use it in GitHub Desktop.
inline webpack processed assets in index.html
<!DOCTYPE html>
<html lang="en">
<head>
<style>
<%= compilation.assets[htmlWebpackPlugin.files.chunks.critical.css[0]].source() %>
</style>
</head>
<body>
<div id="app"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment