-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.config.js
39 lines (37 loc) · 1.14 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
'use strict';
const GenerateJsonPlugin = require('../lib/index');
module.exports = {
plugins: [
new GenerateJsonPlugin({
filename: 'manifest.json',
space: 4,
value: {
short_name: 'Weather',
name: 'Weather: Do I need an umbrella?',
description: 'Weather forecast information',
icons: [
{
src: "/images/icons-192.png",
type: "image/png",
sizes: "192x192"
},
{
src: "/images/icons-512.png",
type: "image/png",
sizes: "512x512"
}
],
start_url: "/?source=pwa",
background_color: "#3367D6",
display: "standalone",
scope: "/",
theme_color: "#3367D6"
}
}),
new GenerateJsonPlugin({
filename: 'config.json',
space: 4,
source: __dirname + '/src/config.js'
})
],
};