Last active
May 21, 2018 05:25
-
-
Save unlocomqx/353387e265d5c9fbc91e5224ddbb290f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Function that mutates original webpack config. | |
* Supports asynchronous changes when promise is returned. | |
* | |
* @param {object} config - original webpack config. | |
* @param {object} env - options passed to CLI. | |
* @param {WebpackConfigHelpers} helpers - object with useful helpers when working with config. | |
**/ | |
export default function (config, env, helpers) { | |
helpers.setHtmlTemplate(config, 'src/index.html'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment