mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-26 05:13:24 +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 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([
|
||||||
|
Loading…
Reference in New Issue
Block a user