ui5-tooling icon indicating copy to clipboard operation
ui5-tooling copied to clipboard

Add ability to configure behavior of predefined tasks

Open dfenerski opened this issue 1 year ago • 4 comments

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

For big enterprises running internal apps it may be helpful to have debug / source map files on prod. Sometimes however this behavior is not optimal. If the front-end code should be considered some form of ""intellectual property"", availability of only obfuscated files in the browser is a good scenario.

In v2 the createDebugFiles could be switched off. In v3 minify now handles generation of such files. And to disable debug file generation means to skip the whole minification process.

AFAIK predefined tasks / tasks in general accept no "arguments" that may influence their behavior.

Describe the solution you'd like

Tasks / predefined tasks / minify should be able to accept arguments specifying whether source maps / debug files should be generated.

Describe alternatives you've considered

One can edit the source code here and adjust the behavior. Tool such as the npm package patch-package can be used to persist any such changes. This is however very inflexible and requires maintenance.

Additional context

I think such functionality would be helpful. Please let me now if I am missing something here / this is already covered in some way.

Thanks & BR

dfenerski avatar Mar 24 '23 14:03 dfenerski