File tree Expand file tree Collapse file tree 4 files changed +707
-26
lines changed
Expand file tree Collapse file tree 4 files changed +707
-26
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const autoprefixer = require('autoprefixer');
55const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
66const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
77const StyleLintPlugin = require ( 'stylelint-webpack-plugin' ) ;
8+ const FaviconsWebpackPlugin = require ( 'favicons-webpack-plugin' ) ;
89
910const dirSrc = path . join ( __dirname , '../src' ) ;
1011const 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' ) ,
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments