-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
106 lines (91 loc) · 3.16 KB
/
constants.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
'use strict';
const root = require('./helpers.js').root;
const ip = require('ip');
exports.HOST = ip.address();
exports.DEV_PORT = 3001;
exports.E2E_PORT = 4201;
exports.PROD_PORT = 8086;
exports.UNIVERSAL_PORT = 8001;
exports.SHOW_WEBPACK_BUNDLE_ANALYZER = true;
/**
* These constants set whether or not you will use proxy for Webpack DevServer
* For advanced configuration details, go to:
* https://webpack.github.io/docs/webpack-dev-server.html#proxy
*/
exports.USE_DEV_SERVER_PROXY = false;
exports.DEV_SERVER_PROXY_CONFIG = {
'**': 'http://localhost:8089'
};
/**
* These constants set the source maps that will be used on build.
* For info on source map options, go to:
* https://webpack.github.io/docs/configuration.html#devtool
*/
exports.DEV_SOURCE_MAPS = 'eval';
exports.PROD_SOURCE_MAPS = undefined;
/**
* Set watch options for Dev Server. For better HMR performance, you can
* try setting poll to 1000 or as low as 300 and set aggregateTimeout to as low as 0.
* These settings will effect CPU usage, so optimal setting will depend on your dev environment.
* https://github.com/webpack/docs/wiki/webpack-dev-middleware#watchoptionsaggregatetimeout
*/
exports.DEV_SERVER_WATCH_OPTIONS = {
poll: 300,
aggregateTimeout: 100,
ignored: /node_modules/
};
/**
* specifies which @ngrx dev tools will be available when you build and load
* your app in dev mode. Options are: logger | none
*/
exports.STORE_DEV_TOOLS = 'logger';
exports.EXCLUDE_SOURCE_MAPS = [
// these packages have problems with their sourcemaps
root('node_modules/@angular'),
root('node_modules/rxjs')
];
exports.MY_COPY_FOLDERS = [
// use this for folders you want to be copied in to Client dist
// src/assets and index.html are already copied by default.
// format is { from: 'folder_name', to: 'folder_name' }
];
exports.MY_VENDOR_DLLS = [
// list vendors that you want to be included in your dlls files
// this will speed up initial dev server build and incremental builds.
// Be sure to run `npm run build:dll` if you make changes to this array.
];
exports.MY_CLIENT_PLUGINS = [
// use this to import your own webpack config Client plugins.
];
exports.MY_CLIENT_PRODUCTION_PLUGINS = [
// use this to import your own webpack config plugins for production use.
];
exports.MY_CLIENT_RULES = [
// use this to import your own rules for Client webpack config.
];
exports.MY_TEST_RULES = [
// use this to import your own rules for Test webpack config.
];
exports.MY_TEST_PLUGINS = [
// use this to import your own Test webpack config plugins.
];
/**
* Caching for service worker. User cacheFirst for data that you want to use cache primarily and network
* request as fallback. Use network firs for data that you want to retrieve from network first and use
* cache as fallback. Must use https if not local.
* For more details on options, see: https://github.com/GoogleChrome/sw-precache#runtimecaching-arrayobject
*/
exports.SW_RUNTIME_CACHING = [
{
handler: 'cacheFirst',
urlPattern: /[.]mp3$/
},
{
urlPattern: /^http:\/\/10.0.0.87:8089\/user/,
handler: 'networkFirst'
},
{
urlPattern: /^https:\/\/levelrewards.com:8443\/user/,
handler: 'networkFirst'
}
];