Mercurial > hg > thermostat-ng > web-client
changeset 248:70b4d54655af
Use ContextReplacementPlugin to avoid "critical dependency" build warning
Reviewed-by: jkang
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-October/025395.html
author | Andrew Azores <aazores@redhat.com> |
---|---|
date | Mon, 16 Oct 2017 11:09:35 -0400 |
parents | c64e2518bae5 |
children | 17c7c78c596f |
files | webpack.config.js |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/webpack.config.js Fri Oct 13 14:17:45 2017 -0400 +++ b/webpack.config.js Mon Oct 16 11:09:35 2017 -0400 @@ -120,6 +120,14 @@ config.plugins = []; + // see https://github.com/angular/angular/issues/11580#issuecomment-327338189 + config.plugins.push( + new webpack.ContextReplacementPlugin( + /(.+)?angular(\\|\/)core(.+)?/, + path.join(__dirname, 'src') + ) + ); + config.plugins.push( new webpack.ProvidePlugin({ $: 'jquery',