Skip to content

Commit b3c9467

Browse files
committed
Added favicons
1 parent 9787010 commit b3c9467

File tree

4 files changed

+707
-26
lines changed

4 files changed

+707
-26
lines changed

conf/webpack.conf.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const autoprefixer = require('autoprefixer');
55
const HtmlWebpackPlugin = require('html-webpack-plugin');
66
const ExtractTextPlugin = require('extract-text-webpack-plugin');
77
const StyleLintPlugin = require('stylelint-webpack-plugin');
8+
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
89

910
const dirSrc = path.join(__dirname, '../src');
1011
const dirNodeModules = path.join(__dirname, '../node_modules');
@@ -19,7 +20,25 @@ module.exports = {
1920
template: path.join(dirSrc, 'index.html')
2021
}),
2122
new ExtractTextPlugin('style.[hash].css'),
22-
new StyleLintPlugin()
23+
new StyleLintPlugin(),
24+
new FaviconsWebpackPlugin({
25+
logo: path.join(dirSrc, 'images/favicon.png'),
26+
background: '#fff',
27+
theme_color: '#312783', // eslint-disable-line camelcase
28+
title: 'AngularJS Webpack seed project',
29+
icons: {
30+
android: true,
31+
appleIcon: true,
32+
appleStartup: true,
33+
coast: true,
34+
favicons: true,
35+
firefox: true,
36+
opengraph: true,
37+
twitter: true,
38+
yandex: true,
39+
windows: true
40+
}
41+
})
2342
],
2443
entry: {
2544
app: path.join(dirSrc, 'index'),

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"eslint-plugin-angular": "^3.1.1",
2727
"eslint-plugin-babel": "^4.1.2",
2828
"extract-text-webpack-plugin": "^3.0.2",
29+
"favicons-webpack-plugin": "^0.0.7",
2930
"file-loader": "^1.1.5",
3031
"html-loader": "^0.5.1",
3132
"html-webpack-plugin": "^2.30.1",

src/images/favicon.png

26.1 KB
Loading

0 commit comments

Comments
 (0)