File tree 6 files changed +21
-9
lines changed 6 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 3
3
> React template for web app, powered by [ Poi] ( https://poi.js.org/ ) .
4
4
5
5
- [x] [ prettier] ( https://github.com/prettier/prettier ) + eslint
6
- - [x] PWA support (by [ offline-plugin] ( https://github.com/NekR/offline-plugin ) )
6
+ - [x] PWA support (by [ offline-plugin] ( https://github.com/NekR/offline-plugin ) & [ pwacompat ] ( https://github.com/GoogleChromeLabs/pwacompat ) )
7
7
- [x] [ TailwindCSS] ( https://tailwindcss.com/ ) & SASS
8
8
- [x] Routing & code splitting (by [ curi] ( https://github.com/pshrmn/curi ) )
9
9
Original file line number Diff line number Diff line change 9
9
10
10
<% if (pwa) { % >
11
11
< link rel= " manifest" href= " <%%= htmlWebpackPlugin.files.publicPath %%>manifest.json" >
12
- < meta name= " theme-color" content= " #ffffff" >
12
+ < script
13
+ async
14
+ src= " https://cdn.rawgit.com/GoogleChrome/pwacompat/v2.0.2/pwacompat.min.js"
15
+ integrity= " sha384-Hed93irwedHCADsxBJAVmlSMiqpE9BIQPp1XK7tqJh5olTEJTCJnlE7wRU3IDOz9"
16
+ crossorigin= " anonymous" >< / script>
13
17
< % } %>
14
18
15
19
<% % if (htmlWebpackPlugin .options .description ) { %% >
Original file line number Diff line number Diff line change 4
4
"scripts" : {
5
5
"dev" : " poi" ,
6
6
"build" : " poi build" ,
7
+ "serve" : " serve dist -l 8000" ,
7
8
"lint" : " eslint --ext .js,.jsx --ignore-path .gitignore ." ,
8
9
"lint:fix" : " eslint --fix --ext .js,.jsx --ignore-path .gitignore ."
9
10
},
37
38
"purgecss-webpack-plugin" : " ^0.20.1" ,
38
39
"purgecss-whitelister" : " ^1.1.3" ,
39
40
"react-hot-loader" : " ^4.2.0" ,
40
- "sass-loader" : " ^6.0.7" <% if(tailwindcss) { %>,
41
+ "sass-loader" : " ^6.0.7" ,
42
+ "serve" : " ^7.2.0" <% if(tailwindcss) { %>,
41
43
"tailwindcss" : " ^0.5.3" <% } %>
42
44
},
43
45
"resolutions" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " <%= name %>" ,
3
3
"short_name" : " <%= name %>" ,
4
- "icons" : [{
5
- "src" : " favicon.ico" ,
6
- "sizes" : " 64x64 32x32 24x24 16x16" ,
7
- "type" : " image/x-icon"
8
- }],
9
- "start_url" : " ./" ,
4
+ "icons" : [
5
+ {
6
+ "src" : " favicon.ico" ,
7
+ "sizes" : " 64x64" ,
8
+ "type" : " image/x-icon"
9
+ },
10
+ {
11
+ "src" : " logo-128.png" ,
12
+ "sizes" : " 128x128"
13
+ }
14
+ ],
15
+ "start_url" : " ./?homescreen=true" ,
10
16
"theme_color" : " #ffffff" ,
11
17
"background_color" : " #ffffff" ,
12
18
"orientation" : " portrait" ,
You can’t perform that action at this time.
0 commit comments