-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I want to zip my /dist directory and put the compressed file in the /build directory
my-app
+-- dist
|-- fonts
| +-- (font files)
|-- js
| +-- (js files)
+-- index.html
after run webpack, my-app.zip contains the following:
|-- fonts
| +-- (font files)
|-- js
| +-- (js files)
+-- index.html
but I want my-app.zip to contain the following:
dist
|-- fonts
| +-- (font files)
|-- js
| +-- (js files)
+-- index.html
other compression plugins provide a pathPrefix configuration option for this (see zip-webpack-plugin)
// OPTIONAL: defaults an empty string
// the prefix for the files included in the zip file
pathPrefix: 'relative/path',
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels