Skip to content

Instantly share code, notes, and snippets.

@olegdater
Created March 6, 2020 13:58
Show Gist options
  • Save olegdater/9b8b36b0149f4906ae7e609dae594e28 to your computer and use it in GitHub Desktop.
Save olegdater/9b8b36b0149f4906ae7e609dae594e28 to your computer and use it in GitHub Desktop.
webpack config for html-loader
/* eslint-disable no-unused-vars */
/* eslint-disable no-param-reassign */
module.exports = function override(config, env) {
if (!config.plugins) {
config.plugins = [];
}
config.module.rules.push({
test: /\.html$/i,
loader: 'html-loader',
});
return config;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment