summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/webpack.config.js
diff options
context:
space:
mode:
authorMalek <malek.zoabi@amdocs.com>2018-10-16 16:44:41 +0300
committerAvi Gaffa <avi.gaffa@amdocs.com>2018-10-16 14:55:40 +0000
commite6c3c72677709af1135948b490a99d8f0c6a48bd (patch)
tree508df56f05821440da4b26af0ebd1d7a7625ecf3 /openecomp-ui/webpack.config.js
parenta8a714ac431ec812b9f25aa540be5bab0b522da8 (diff)
Add worker to onboard notification
Issue-ID: SDC-1840 Change-Id: I0506df2073beb14de2aea5a01233f05ce9a6d7f7 Signed-off-by: Malek <malek.zoabi@amdocs.com>
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