Skip to content

path prefix option #6

@beagins

Description

@beagins

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',

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions