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

[FEATURE] Add minify task and processor #666

Merged
merged 25 commits into from
Jan 17, 2022
Merged

[FEATURE] Add minify task and processor #666

merged 25 commits into from
Jan 17, 2022

Commits on Jan 14, 2022

  1. Configuration menu
    Copy the full SHA
    1ea1bb7 View commit details
    Browse the repository at this point in the history
  2. [FEATURE] Add 'minify' task and processor

    Combines debug-file creation, source-map generation and minification.
    Replaces existing tasks/processors 'uglify' and 'createDebugFiles'.
    
    BREAKING CHANGE:
    The following tasks have been removed:
    - createDebugFiles
    - uglify
    
    The following processors have been removed:
    - debugFileCreator
    - resourceCopier
    - uglifier
    
    As a replacement, the new 'minify' task and 'minifier' processors can be
    used.
    
    Note: The minify task is now executed earlier, before the bundling
    process takes place. The 'beforeTask' and 'afterTask' configuration of
    custom tasks might need to be adapted to cater for this change.
    RandomByte committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    30c87d8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    90d95bc View commit details
    Browse the repository at this point in the history
  4. [INTERNAL] lbt/bundle/Builder: Remove compression

    Bundling can now rely on preceding minify task
    RandomByte committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    a4d31f9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c0d4c30 View commit details
    Browse the repository at this point in the history
  6. [INTERNAL] minifier: Skip debug-variant check, rename return value, f…

    …ix error message
    
    Do not check whether a debug-variant already exists. Just overwrite it
    RandomByte committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    705c54c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e14933b View commit details
    Browse the repository at this point in the history
  8. [INTERNAL] Update tests

    RandomByte committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    d780860 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    36b6e98 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7885d19 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    dcc6047 View commit details
    Browse the repository at this point in the history
  12. [INTERNAL] builder integration tests: Add tests for optimize: false w…

    …ith and without minify task
    RandomByte committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    801b508 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4003b79 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    f91f11d View commit details
    Browse the repository at this point in the history
  15. [INTERNAL] Use ReaderTransformer to remove -dbg from resource names

    Only for bundles configured as 'optimize: false'.
    
    Removes LocatorResourcePool  option to remove -dbg from resource names.
    RandomByte committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    6c432d6 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ff1b7e6 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    9562ef9 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a6e7b64 View commit details
    Browse the repository at this point in the history
  19. [INTERNAL] generateLibraryPreload: Apply resource transformation for …

    …unoptimized sap.ui.core bundles
    
    Only applicable to sap.ui.core versions <1.97.0. Same logic as for
    custom bundles in the generateBundle task.
    RandomByte committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    59dc7bd View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    9ea9288 View commit details
    Browse the repository at this point in the history
  21. [INTERNAL] generateStandaloneAppBundle: Update integration test

    Without building all dependencies, some modules might not be minified now
    RandomByte committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    ca7423f View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    cc3553e View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    c32c5a8 View commit details
    Browse the repository at this point in the history
  24. [INTERNAL] Minifer: Exclude .support.js files using glob pattern in b…

    …uilder instead of explicit implementation
    RandomByte committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    c6c1e84 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    c0676d6 View commit details
    Browse the repository at this point in the history