forked from symfony/webpack-encore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRuntimeConfig.js
More file actions
37 lines (31 loc) · 1015 Bytes
/
RuntimeConfig.js
File metadata and controls
37 lines (31 loc) · 1015 Bytes
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
/*
* This file is part of the Symfony Webpack Encore package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
'use strict';
class RuntimeConfig {
constructor() {
this.command = null;
this.context = null;
this.isValidCommand = false;
this.environment = process.env.NODE_ENV ? process.env.NODE_ENV : 'dev';
this.useDevServer = false;
this.devServerServerType = null;
// see config-generator - getWebpackConfig()
this.devServerFinalIsHttps = null;
this.devServerHost = null;
this.devServerPort = null;
this.devServerPublic = null;
this.devServerKeepPublicPath = false;
this.outputJson = false;
this.profile = false;
this.babelRcFileExists = null;
this.helpRequested = false;
this.verbose = false;
}
}
module.exports = RuntimeConfig;