X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fsparky-fe.git;a=blobdiff_plain;f=gulpfile.js;fp=gulpfile.js;h=ab623507433bf2e2abdfbb569fa99cd8f2f1dec0;hp=927d2a7c3c44d5f8087c51d792e798fa31405b87;hb=e513a1ce93b9a70f01b62ca7560dbe52376cc5bd;hpb=d6fba6d748db7fbfac158ba8ae1a342c89826043 diff --git a/gulpfile.js b/gulpfile.js index 927d2a7..ab62350 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -90,7 +90,7 @@ gulp.task('prod', () => { webpackProductionConfig.cache = true; webpackProductionConfig.output = { path: localPath.join(__dirname, 'dist'), - publicPath: '/services/aai/webapp/', + publicPath: '', filename: '[name].js' }; webpackProductionConfig.resolveLoader = { @@ -116,13 +116,8 @@ gulp.task('prod', () => { }; webpackProductionConfig.plugins = [ new webpack.DefinePlugin({ - 'process.env': { - // This has effect on the react lib size - 'NODE_ENV': JSON.stringify('production') - }, - DEBUG: false, - DEV: false - }), + 'process.env.NODE_ENV': JSON.stringify('production') + }), new webpack.optimize.DedupePlugin(), new webpack.optimize.UglifyJsPlugin() ];