Skip to content

Instantly share code, notes, and snippets.

@zouhir
Created November 27, 2017 05:03
Show Gist options
  • Save zouhir/bb52d142fcf4ba871d2796b10cef7ebd to your computer and use it in GitHub Desktop.
Save zouhir/bb52d142fcf4ba871d2796b10cef7ebd to your computer and use it in GitHub Desktop.
<!-- print it as -->
<h1><%= htmlWebpackPlugin.options.SOME_VAR %></h1>
export default (config, env, helpers) => {
let htmlPlugin = helpers.getPluginsByName(config, "HtmlWebpackPlugin")[0];
htmlPlugin.plugin.options.SOME_VAR = 'var-value';
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment