This is the strangest thing: I'm zipping up a dist directory using npm, and jszip is skipping a file. I'm using Windows 10 Professional 64-bit.
The npm script in my package.json is simple:
"scripts" {
"package": "jszip -o foobar.zip dist"
}
The files are inside dist/css. There are 27 files. It always skips one of them, guise-skeleton.min.css. Sometimes it skips two of them. I can see no rhyme or reason for this.
You can test this using the repository commit globalmentor/guise-skeleton@a5ad853 .
- Run
npm install.
- Run
npm run clean.
- Run
npm run build.
- Look at the zip file generated in
dist/. On my machine it is missing the file dist/css/guise-skeleton.min.css.
(If you want to simplify the build, simply change the "package" script to the one above and run npm run package after you've performed the build at least once.)
Why would jszip be ignoring files in the source directory?
This is the strangest thing: I'm zipping up a
distdirectory using npm, and jszip is skipping a file. I'm using Windows 10 Professional 64-bit.The npm script in my
package.jsonis simple:The files are inside
dist/css. There are 27 files. It always skips one of them,guise-skeleton.min.css. Sometimes it skips two of them. I can see no rhyme or reason for this.You can test this using the repository commit globalmentor/guise-skeleton@a5ad853 .
npm install.npm run clean.npm run build.dist/. On my machine it is missing the filedist/css/guise-skeleton.min.css.(If you want to simplify the build, simply change the
"package"script to the one above and runnpm run packageafter you've performed the build at least once.)Why would jszip be ignoring files in the source directory?