generated from fidum/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnova-package-bundler-command.php
65 lines (60 loc) · 2.14 KB
/
nova-package-bundler-command.php
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
<?php
return [
/*
|--------------------------------------------------------------------------
| Output paths
|--------------------------------------------------------------------------
|
| Define the output paths where the command will save the contents of the
| bundled packages. These paths will be wrapped with `public_path` as
| the output needs to always end up in the public directory so that
| we can tell Nova to load it via the ASSET_URL.
|
*/
'paths' => [
'script' => '/vendor/nova-tools/app.js',
'style' => '/vendor/nova-tools/app.css',
],
/*
|--------------------------------------------------------------------------
| Download url assets
|--------------------------------------------------------------------------
|
| Set this value to `true` if you want the bundler command to download
| assets where the path is already a url. When `false`, url assets are
| ignored when bundling and nova will load them as normal.
|
*/
'download_url_assets' => false,
/*
|--------------------------------------------------------------------------
| Excluded assets
|--------------------------------------------------------------------------
|
| Define the assets to skip when bundling packages. The name of the script
| or style with which it is added is expected here.
|
*/
'excluded' => [
'scripts' => [],
'styles' => [],
],
/*
|--------------------------------------------------------------------------
| Versioning
|--------------------------------------------------------------------------
|
| Enable versioning of generated assets. This will append a query string
| to the asset path with a unique value based on the file content. This
| is done by generating a manifest file that maps the original path to
| the versioned path.
|
| Note: This feature requires the `manifest.json` file to be readable in
| the public directory.
|
*/
'version' => [
'enabled' => false,
'manifest' => '/vendor/nova-tools/manifest.json',
],
];