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 /webpack.config.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 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/webpack.config.js b/webpack.config.js index f038d4d..39e3a04 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -38,7 +38,7 @@ module.exports = { }, output: { path: path.join(__dirname, 'dist'), - publicPath: `http://localhost:${devPort}/services/aai/webapp`, + publicPath: ``, filename: '[name].js' }, resolve: { @@ -71,13 +71,13 @@ module.exports = { loader: 'source-map-loader' }], loaders: [ - {test: /\.(js|jsx)$/, loaders: ['babel-loader', 'eslint-loader'], exclude: /node_modules/}, + {test: /\.(js|jsx)$/, loaders: ['babel-loader', 'eslint-loader', 'source-map-loader'], exclude: /node_modules/}, {test: /\.(css|scss)$/, loaders: ['style', 'css?sourceMap', 'sass?sourceMap']}, // required for font icons - {test: /\.(woff|woff2)(\?.*)?$/, loader: 'url-loader?limit=16384&mimetype=application/font-woff'}, - {test: /\.(ttf|eot|otf)(\?.*)?$/, loader: 'file-loader'}, - {test: /\.(png|jpg|svg)(\?.*)?$/, loader: 'url-loader?limit=16384'}, - {test: /\.json$/, loaders: ['json']} + {test: /\.(woff|woff2|ttf|eot|otf)(\?.*)?$/, loader: 'url-loader?limit=163840&mimetype=application/font-woff&name=[name].[ext]'}, + {test: /\.(png|jpg|svg)(\?.*)?$/, loader: 'url-loader?limit=163840'}, + {test: /\.json$/, loaders: ['json']}, + { test: /\.xml$/, loader: 'xml-loader' } ] }, eslint: { |