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

Allow reading settings from specified file #76

Open
S-K-Tiger opened this issue Jun 9, 2022 · 0 comments
Open

Allow reading settings from specified file #76

S-K-Tiger opened this issue Jun 9, 2022 · 0 comments
Assignees
Labels
Type: Feature Suggest a new feature.

Comments

@S-K-Tiger
Copy link

🚀 Feature Request

Is your feature request related to a problem? Please describe.

  • Having used the plugin version for a while I noticed only a small number of the options available in said version are available for the client. (Disabling certain file types and all of the Terser options)

Describe the solution you'd like

  • A option to specify a json file that will be used to change default values. Command line arguments would override settings from the config.
  • For instance:
    minifyall myFile.js -c path/to/config.json -m
    with config.json as:
"terserMinifyOptions": {
	"parse": {
		"bare_returns": true
	}
},
"disableHexadecimalShortener": false
  • would have the parser support top level return statements but still minify the hexadecimal color values even if said config file said otherwise.

Describe alternatives you've considered

  • While having the options all added as cmd options like -m would work; this would make it harder to understand and work with.
@S-K-Tiger S-K-Tiger added the Type: Feature Suggest a new feature. label Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Suggest a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants