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 AddFilesPlugin(),
new CopyPlugin([ new CopyPlugin([
{ {
from: "static/**/*", // from inside the static folder
transformPath(targetPath, absolutePath) { context: "static/",
// TODO this is a hack... how do I do this with proper config of `to` or similar? // copy everything
return targetPath.substring(targetPath.indexOf("/") + 1); from: "**/*",
}
} }
]), ]),
new CopyPlugin([ new CopyPlugin([