Skip to content

Commit

Permalink
Merge pull request #118 from Y0hy0h/fix-static-destination
Browse files Browse the repository at this point in the history
Fix static folder destination on Windows and clean up its implementation
  • Loading branch information
dillonkearns authored Jun 16, 2020
2 parents 1605580 + e34c7ca commit 3e1bd85
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions generator/src/develop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 3e1bd85

Please sign in to comment.