-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathConfigDefaults.php
More file actions
80 lines (68 loc) · 2.11 KB
/
Copy pathConfigDefaults.php
File metadata and controls
80 lines (68 loc) · 2.11 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
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
<?php
declare(strict_types=1);
namespace ViteHelper\Utilities;
/**
* Defaults of this plugin's configuration
*
* Define your own config through config files as in config/app_vite.php, e.g. in your app_local.php
*/
class ConfigDefaults
{
/**
* If true, files built for production will always be served
*/
public const FORCE_PRODUCTION_MODE = false;
/**
* The Dev-Server files will be loaded if one of these needles is present in the URL
*/
public const DEVELOPMENT_HOST_NEEDLES = [
'.test',
'.local',
'localhost',
'127.0.0.1',
];
/**
* If true, the manifest file will be checked for existence and readability in order to detect development mode
*/
public const DEVELOPMENT_CHECK_MANIFEST = false;
/**
* for Cookies or URL-params to force production mode
*/
public const PRODUCTION_HINT = 'vprod';
/**
* the url of the ViteJS dev server
*/
public const DEVELOPMENT_URL = 'http://localhost:3000';
/**
* Path to js/ts entry files during development relative to project root.
*/
public const DEVELOPMENT_SCRIPT_ENTRIES = [];
/**
* Path to style entry files during development relative to project root.
*/
public const DEVELOPMENT_STYLE_ENTRIES = [];
/**
* Output directory (build.outDir) - string (e.g. 'dist') or false
*
* @see https://vitejs.dev/config/build-options.html#build-outdir
*/
public const BUILD_OUT_DIRECTORY = false;
/**
* The absolute path to the manifest file
*
* @see https://vitejs.dev/config/build-options.html#build-manifest
*/
public const BUILD_MANIFEST = WWW_ROOT . 'manifest.json';
/**
* Name of the view block where the link tags for css should be rendered.
*
* @see https://book.cakephp.org/4/en/views.html#using-view-blocks
*/
public const VIEW_BLOCK_CSS = 'css';
/**
* Name of the view block where the script tags should be rendered.
*
* @see https://book.cakephp.org/4/en/views.html#using-view-blocks
*/
public const VIEW_BLOCK_SCRIPT = 'script';
}