Last active
August 27, 2020 00:33
-
-
Save Uzwername/9bcac457f7a90d4e6ae7fa003b5d5944 to your computer and use it in GitHub Desktop.
HtmlWebpackPlugin - Second attempt
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
<script> | |
(function(){ | |
function showErrorPage() { | |
// Doesn't matter for now | |
} | |
window.addEventListener('DOMContentLoaded', function() { | |
var appScript = document.querySelector('script[src^="bundle"]'); | |
appScript.addEventListener('error', showErrorPage); | |
}); | |
})(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment