You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2018. It is now read-only.
If the file-loader is used, and there is a ./ in the name, emitted files will be cleaned up by this plugin
To see this behaviour,
Unzip attached project.
npm install && npm run build
You will see two files are emitted, but the svg is not in the dist directory.
If you remove the WebpackCleanupPlugin it will work as expected.
If you remove the ./ from the name part of the file-loader module it will work as expected
Thanks @mobz for providing the zip to test this case. Your solution is right, the problem is when excluding files with a relative path in it. I've added the case in this test as it is a situation that getFiles should handle (not the plugin itself).
If the file-loader is used, and there is a
./
in the name, emitted files will be cleaned up by this pluginTo see this behaviour,
Unzip attached project.
npm install && npm run build
You will see two files are emitted, but the svg is not in the dist directory.
If you remove the WebpackCleanupPlugin it will work as expected.
If you remove the
./
from the name part of the file-loader module it will work as expectedtest-webpack-cleanup-plugin.zip
The text was updated successfully, but these errors were encountered: