mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 12:52:27 +03:00
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:
commit
3e1bd85001
@ -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([
|
||||
|
Loading…
Reference in New Issue
Block a user