summaryrefslogtreecommitdiffstats
path: root/webpack.devConfig.js
diff options
context:
space:
mode:
authorArul.Nambi <arul.nambi@amdocs.com>2018-11-07 09:19:21 -0500
committerArul.Nambi <arul.nambi@amdocs.com>2018-11-07 10:19:13 -0500
commite513a1ce93b9a70f01b62ca7560dbe52376cc5bd (patch)
tree823fafd48b54048e3761ed2f9fca65375964db37 /webpack.devConfig.js
parentd6fba6d748db7fbfac158ba8ae1a342c89826043 (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.devConfig.js')
-rw-r--r--webpack.devConfig.js18
1 files changed, 8 insertions, 10 deletions
diff --git a/webpack.devConfig.js b/webpack.devConfig.js
index e1e8876..e4bf80b 100644
--- a/webpack.devConfig.js
+++ b/webpack.devConfig.js
@@ -27,20 +27,18 @@ var devPort = process.env.PORT || 8001;
module.exports = {
devtool: 'eval-source-map',
entry: {
- 'aai/bundle': [
+ bundle: [
'app/main.app.jsx',
- `webpack-dev-server/client?https://localhost:${devPort}`,
'webpack/hot/only-dev-server'
],
'editAttributes/editAttributesBundle': [
'editAttributes/main.app.jsx',
- `webpack-dev-server/client?https://localhost:${devPort}`,
'webpack/hot/only-dev-server'
]
},
output: {
path: path.join(__dirname, 'dist'),
- publicPath: `https://localhost:${devPort}/`,
+ publicPath: ``,
filename: '[name].js'
},
resolve: {
@@ -57,7 +55,7 @@ module.exports = {
devServer: {
port: devPort,
historyApiFallback: true,
- publicPath: `https://localhost:${devPort}/`,
+ publicPath: ``,
contentBase: path.join(__dirname, 'dist'),
hot: true,
progress: true,
@@ -74,12 +72,12 @@ module.exports = {
],
loaders: [
{test: /\.(js|jsx)$/, loaders: ['babel-loader', 'eslint-loader'], exclude: /node_modules/},
- {test: /\.(css|scss)$/, loaders: ['style', 'css?sourceMap', 'sass?sourceMap']},
+ {test: /\.(css|scss)$/, loaders: ['style-loader', 'css-loader', 'sass-loader']},
// 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&name=[name].[ext]'},
+ {test: /\.json$/, loaders: ['json']},
+ { test: /\.xml$/, loader: 'xml-loader' }
]
},
eslint: {