Created
March 26, 2019 09:03
-
-
Save thomasmichaelwallace/e4d15657678d474eb1ffaf092658b2d3 to your computer and use it in GitHub Desktop.
Hiding webpack warnings
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
const webpack = require('webpack'); | |
module.exports = { | |
// ... your webpack configuration ... | |
plugins: [ | |
new webpack.ContextReplacementPlugin( | |
/\/package-name\//, | |
(data) => { | |
delete data.dependencies[0].critical; | |
return data; | |
}, | |
), | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment