Created
March 6, 2020 13:58
-
-
Save olegdater/9b8b36b0149f4906ae7e609dae594e28 to your computer and use it in GitHub Desktop.
webpack config for html-loader
This file contains hidden or 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
/* 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