Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compress.json or Compress.js #384

Open
NikolaRHristov opened this issue Jul 17, 2024 · 0 comments
Open

Compress.json or Compress.js #384

NikolaRHristov opened this issue Jul 17, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@NikolaRHristov
Copy link
Member

NikolaRHristov commented Jul 17, 2024

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: []
}
@NikolaRHristov NikolaRHristov added the enhancement New feature or request label Jul 17, 2024
@NikolaRHristov NikolaRHristov self-assigned this Jul 17, 2024
@NikolaRHristov NikolaRHristov changed the title Compress.json Compress.json or Compress.js Jul 18, 2024
@NikolaRHristov NikolaRHristov added the help wanted Extra attention is needed label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Development

No branches or pull requests

1 participant