Skip to content

v1.1.4

Latest
Compare
Choose a tag to compare
@kukushouhou kukushouhou released this 06 Oct 17:01

Release Notes

New Features:

  • New Configuration Option: clearAbsPath
    The new version introduces the clearAbsPath option, which is enabled by default (default is true). When enabled, this option cleans up absolute path variables in the code after compilation but before compression. This ensures consistency of the build output across different systems and paths. Since Firefox requires the compiled output to be consistent with the uploaded file in any environment, it is necessary to clean up absolute path variables. If a string is passed, the absolute path will be replaced with the provided string; if true is passed, the default value __ROOT__ will be used to replace the absolute path.

更新说明

新增功能:

  • 新增配置项:clearAbsPath
    新版本引入了clearAbsPath选项,默认为true。启用后,该选项将在编译后但压缩代码前清理代码中的绝对路径变量,从而解决不同系统和路径下构建产物不一致的问题。由于Firefox要求编译后的产物在任何环境下都必须与上传的文件一致,因此需要清理绝对路径变量。如果传入字符串,则用该字符串替换绝对路径;如果传入true,则使用默认值__ROOT__替换绝对路径。

Full Changelog: v1.1.3...v1.1.4