diff options
author | Arul.Nambi <arul.nambi@amdocs.com> | 2018-11-07 09:19:21 -0500 |
---|---|---|
committer | Arul.Nambi <arul.nambi@amdocs.com> | 2018-11-07 10:19:13 -0500 |
commit | e513a1ce93b9a70f01b62ca7560dbe52376cc5bd (patch) | |
tree | 823fafd48b54048e3761ed2f9fca65375964db37 /gulpfile.js | |
parent | d6fba6d748db7fbfac158ba8ae1a342c89826043 (diff) |
Adding option for configurable header
Moving the standalone front end start up from localhost:port/aai -> localhost:port & Updating the node parameter to production for production build so that the minified code is more efficient & Changing the babel loaders for fonts to use the full name instead of the computed hash value & Adding a option to make the page header and html document title configurable instead of the previous hardcoded value of A&AI
Issue-ID: AAI-1881
Change-Id: I867200b97d4e2e9acb687f373e39aab8fb8a1b25
Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 11 |
1 files changed, 3 insertions, 8 deletions
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() ]; |