Skip to content

v4.17.0

Latest
Compare
Choose a tag to compare
@webdiscus webdiscus released this 03 Feb 00:08
· 2 commits to master since this release
5e9ebdf

Cumulative Release v4.6.1 - v4.17.0

Features

  • Pick up the srcset and sizes attributes for image preload, #149.
  • Added integrity attribute for preload tags if integrity option on, #145.
  • Added the fixed preload filter:
    type PreloadFilter =
      | RegExp
      | Array<RegExp>
      | { includes?: Array<RegExp>; excludes?: Array<RegExp> }
      | ((asset: { sourceFiles: Array<string>; outputFile: string }) => void | boolean); // <= BRAKING CHANGES compared to v4.14.0 (DEPRECATED)
  • Added support for preloading of dynamic imported modules, #138.
  • Added support for the ?inline query to load assets as data URL.
  • Added support for the ?inline query by importing SVG file in JS as data URL
    import file from './image.svg'; // import according the matched webpack config, defaults as output filename
    import file from './image.svg?inline'; // import as UTF-8 data URL
    import file from './image.svg?inline=utf8'; // import as UTF-8 data URL
    import file from './image.svg?inline=base64'; // import as base64-encoded data URL
  • Added the renderStage option to define the stage for rendering output HTML in the processAssets Webpack hook.
  • Added support for handlebars helpers in compile mode.
  • Rebuilt all entry point templates by serve/watch, after a partial file is modified.
  • Added minimized tag in stats output for minimized HTML assets.
  • Precompile Handlebars templates with sub partials.

Bug Fixes

  • Fixed compilation fails if used the integrity option with the publicPath as an external URL.
  • Improve error messages inc. error stack if async processes fail.
  • Fixed unpredictably Webpack compilation fails after a random number of runs, #143.
  • Improve the handling exceptions in the integrity module, #143.
  • Fixed output URL for preloaded resources if publicPath is a URL or root path, #141.
  • Fixed allow to define the renderStage option lower than PROCESS_ASSETS_STAGE_SUMMARIZE, #137.
  • Fixed incorrect output of preload tag if crossorigin: true, #139.
  • Fixed if as=font is used in preload and the crossorigin is not defined, it will be added automatically, because the crossorigin is mandatory for font type.
  • Fixed in TypeScript the renderStage option should be optional.
  • Set default render stage before the stage used in compression-webpack-plugin to save completely rendered HTML, #134.
  • Fixed fail rebuild after changed css file if no html entry defined, #132.
  • Resolve webpack alias correctly if it is external URL.
  • Fixed if a module build has failed then stop further processing of modules to allow output original error.
  • Fixed if template is imported in JS in compile mode and the same template function called with different variables set
    then variables from previous definition must not be cached. This fix is for all template engines. #128.
  • Fixed watching changes in files outer the project directory.
  • Fixed missing optional dependencies.