Be able to load the configuration in:
https://github.com/PlayForm/Compress/blob/Current/Source/Variable/Option.ts
|
const { |
|
Path, |
|
Cache, |
|
Logger, |
|
Map: _Map, |
|
Exclude, |
|
Action, |
|
CSS, |
|
HTML, |
|
Image, |
|
JavaScript, |
|
SVG, |
|
Parser, |
|
} = Merge(Default, _Option); |
from a Compress.json file like so:
{
"Action": {},
"Cache": false,
"CSS": {},
"Exclude": []
}
or a Compress.js file since the actions have to be defined in JavaScript.
{
Action: {},
Cache: false,
CSS: {},
Exclude: []
}
Be able to load the configuration in:
https://github.com/PlayForm/Compress/blob/Current/Source/Variable/Option.ts
Compress/Source/Function/Integration.ts
Lines 18 to 31 in e2db6b9
from a
Compress.jsonfile like so:{ "Action": {}, "Cache": false, "CSS": {}, "Exclude": [] }or a
Compress.jsfile since the actions have to be defined in JavaScript.