Skip to content
#

upload-file

Here are 391 public repositories matching this topic...

Acceyuriko
Acceyuriko commented Apr 27, 2021

插件很棒。

尝试了一下升级到 webpack5 之后,不能通过测试了。

目前发现

  1. test 中 result.compilation.assets['file.js'].source() 会失败,因为 webpack 5 将 assets 都替换为了 SizeOnlySource。可以读取 MemoryFileSystem 里面的文件替换这个功能, 如 fs.readFileSync(path.join(__dirname, 'dist/file.js'), 'utf8')
  2. replaceAsyncChunkName 功能坏掉了,目前还不清楚具体原因。

Improve this page

Add a description, image, and links to the upload-file topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the upload-file topic, visit your repo's landing page and select "manage topics."

Learn more