Merge pull request #118 from Y0hy0h/fix-static-destination

Fix static folder destination on Windows and clean up its implementation
This commit is contained in:
Dillon Kearns 2020-06-16 08:25:03 -07:00 committed by GitHub
commit 3e1bd85001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,11 +151,10 @@ function webpackOptions(
new AddFilesPlugin(),
new CopyPlugin([
{
from: "static/**/*",
transformPath(targetPath, absolutePath) {
// TODO this is a hack... how do I do this with proper config of `to` or similar?
return targetPath.substring(targetPath.indexOf("/") + 1);
}
// from inside the static folder
context: "static/",
// copy everything
from: "**/*",
}
]),
new CopyPlugin([