Recursively compress files in folder individually

Viewed 12

I am trying to compress everything in my src directory and move it to my dist directory with Parcel. For specific reasons, Parcel should not modify file names or the directory structure.

Currently, I run the following commands to build:

rd /s /q dist
mkdir dist
parcel build --no-content-hash --no-source-maps ./src/*

But I still get content hashes (I am aware that --no-content-hash does not remove hashes entirely), and most of the files still get taken out of their original directories.

I simply want Parcel to go through every file in the src directory recursively, and compress each file one by one while copying them to the dist directory along with the folders they were originally in. Is this possible, and how can I achieve this?

0 Answers
Related