summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-ui/webpack.config.js')
-rw-r--r--openecomp-ui/webpack.config.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/openecomp-ui/webpack.config.js b/openecomp-ui/webpack.config.js
index 8cceb9bb92..db952e4a7e 100644
--- a/openecomp-ui/webpack.config.js
+++ b/openecomp-ui/webpack.config.js
@@ -109,6 +109,10 @@ module.exports = (env, argv) => {
),
path.join(__dirname, 'node_modules/sdc-ui/')
]
+ },
+ {
+ test: /\.worker\.js$/,
+ use: { loader: 'worker-loader' }
}
]
},
@@ -129,6 +133,7 @@ module.exports = (env, argv) => {
]
};
if (DEV) {
+ webpackConfig.output.globalObject = 'this';
webpackConfig.entry['punch-outs'].push('react-hot-loader/patch');
webpackConfig.entry['punch-outs'].push(
'webpack-dev-server/client?http://localhost:' + devPort