-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
46 lines (41 loc) · 1.3 KB
/
webpack.config.js
File metadata and controls
46 lines (41 loc) · 1.3 KB
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
40
41
42
43
44
45
46
const WebpackPwaManifest = require("webpack-pwa-manifest");
const path = require("path");
// CONFIGURATIONS FOR WEBPACK
const config = {
entry: "./public/index.js",
output: {
path: __dirname + "/public/dist/",
filename: "bundle.js"
},
mode: "production",
plugins: [
new WebpackPwaManifest({
// the name of the generated manifest file
filename: "manifest.json",
// we aren't using webpack to generate our html so we
// set inject to false
inject: false,
// set fingerprints to `false` to make the names of the generated
// files predictable making it easier to refer to them in our code
fingerprints: false,
name: "Budget Tracker",
short_name: "Budget Tracker",
theme_color: "#317EFB",
background_color: "#dddddd",
start_url: "/",
display: "standalone",
icons: [
{
src: path.resolve(
__dirname,
"public/icons/icon-512x512.png"
),
// the plugin will generate an image for each size
// included in the size array
sizes: [192, 512]
}
]
})
]
};
module.exports = config;