-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
60 lines (54 loc) · 1.25 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// native node modules
const path = require('path');
const appPaths = {
root: process.cwd(),
};
appPaths.dist = path.resolve(appPaths.root, 'dist')
appPaths.src = path.resolve(appPaths.root, 'src');
appPaths.client = path.resolve(appPaths.src, 'client');
appPaths.server = path.resolve(appPaths.src, 'server');
const package = require(path.resolve(appPaths.root, 'package'));
const client = {
logLevel: 'debug',
};
const htmlDocument = {
appMountId: 'app',
inject: false,
lang: 'en-UK',
minify: {
collapseWhitespace: true,
minimize: true,
removeAttributeQuotes: false,
removeComments: true,
},
mobile: true,
template: require('html-webpack-template'),
title: package.displayName,
xhtml: true,
};
const pwaManifest = {
applications: {
gecko: {
id: 'example@example.com',
},
},
author: package.author,
default_locale: 'en',
description: package.description,
display: 'minimal-ui',
inject: true, // must come after HtmlWebpackPlugin in plugins array
ios: true,
manifest_version: 2,
name: package.displayName,
permissons: [ // https://developer.chrome.com/extensions/declare_permissions
],
short_name: package.shortName,
start_url: '/',
version: package.version,
};
module.exports = {
appPaths,
client,
htmlDocument,
pwaManifest,
};