summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2018-02-02 11:02:46 -0800
committerEd Tanous <ed.tanous@intel.com>2018-02-02 12:14:40 -0800
commit3b3ab8af26dddc1229920e93ebb741ab6230fcc5 (patch)
tree3370f5af25a06e0f39b959cbcc0e5291845eef52 /webpack.config.js
parent8126bcb1b9c9a9176eb73373ac25f75864cc0bbd (diff)
downloadphosphor-webui-3b3ab8af26dddc1229920e93ebb741ab6230fcc5.tar.gz
phosphor-webui-3b3ab8af26dddc1229920e93ebb741ab6230fcc5.zip
Add proper favicon handling
The current repo doesn't seem to produce a favicon, so having the reference to it produces either a 404 error or a 401 error depending on the server. Add a transparent favicon until someone can cobble together a proper one from the openbmc SVG files Change-Id: I5a79be5982e164a8ae0b28a69f673129c0a959ba Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js
index e848662..2297fc5 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -130,7 +130,7 @@ module.exports = [
// Pass along the updated reference to your code
// You can add here any file extension you want to get copied to your
// output
- test : /\.(png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot)$/,
+ test : /\.(png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot|ico)$/,
loader : 'file-loader',
options : {
name(file) {
@@ -207,7 +207,11 @@ module.exports = [
// Render index.html
config.plugins.push(
new HtmlWebpackPlugin(
- {template : './app/index.html', inject : 'body'}),
+ {
+ template : './app/index.html',
+ inject : 'body',
+ favicon: './app/assets/images/favicon.ico'
+ }),
// Reference: https://github.com/webpack/extract-text-webpack-plugin
// Extract css files
OpenPOWER on IntegriCloud