-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
defaults.yaml
121 lines (108 loc) · 3.01 KB
/
defaults.yaml
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# packages can be an object (for one package) or an array (for multiple packages)
# packages: []
extensions:
style:
- .pcss
- .css
- .scss
- .sass
script:
- .js
- .jsx
- .ts
- .tsx
- .json
module:
- .mjs
- .mjsx
- .mts
- .mtsx
commonJS:
- .cjs
- .cjsx
- .cts
- .ctsx
folder:
base: DistributionPackages
input: Fusion
# additionalAliases can be a string or an array
additionalAliases: Packages
output:
inline: Private/Templates/InlineAssets
style: Public/Styles
script: Public/Scripts
module: Public/Modules
commonJS: Public/CommonJS
buildDefaults:
inline: false
sourcemap: true
format: iife
jsFileExtension:
script: .js
module: .mjs
commonJS: .cjs
# external can be a string or an array
# https://esbuild.github.io/api/#external
external: null
# purge can be a string or an array
purge:
- DistributionPackages/**/(Private|NodeTypes)/**/*.{fusion,html,js,jsx,ts,tsx,mjs,mjsx,mts,mtsx,cjs,cjsx,cts,ctsx,svelte,vue}
- '!DistributionPackages/**/Private/**/node_modules'
compression:
brotli: 11
gzip: 9
# Pass options to the sass compiler
sassOptions: null
# Pass options to the postcss config file
postcssOptions:
tailwindcss:
config: './tailwind.config.mjs'
additionalPackagePathPrefixes: []
esbuild:
# Set Neos Flow settings as FLOW variable. If `true` all the settings are passed.
# It is recommended to set it to a path (e.g. Flownative.Sentry)
# This is the same as passing --path to the ./flow configuration:show command
# In Javascript the value is available under the variable FLOW
# (e.g. FLOW.Flownative.Sentry)
defineFlowSettings: false
# Set options for esbuild
options:
# Define a string (for only one function) or an array with functions who can be removed on production builds.
# eg. ['console.log','console.info']
# https://esbuild.github.io/api/#pure
pure: null
# The log level can be changed to prevent esbuild from printing warning and/or error messages to the terminal.
# https://esbuild.github.io/api/#log-level
logLevel: info
# A "legal comment" is considered to be any statement-level comment
# that contains @license or @preserve or that starts with //! or /*!.
# https://esbuild.github.io/api/#legal-comments
legalComments: linked
plugins:
vue:
enable: false
plugin: esbuild-plugin-vue3
options:
cssInline: true
svelte:
enable: false
plugin: esbuild-svelte
preprocess: svelte-preprocess
filterWarnings:
# Disable warnings if the filename and path starts with the given string
filenameStartsWith:
'node_modules/': true
# Disable warnings for the following rules
code: null
options:
compilerOptions:
css: injected
babel:
enable: false
options: null
injectStyle:
enable: true
# additionalPlugins:
# esbuild-envfile-plugin:
# functionName: setup
# options: null