guocaoyi / create-chrome-ext

🍺 Scaffolding your Chrome extension! Boilerplates: react \ vue \ svelte \ solid \ preact \ alpine \ lit \ stencil \ inferno \ vanilla
MIT License
1.72k stars 125 forks source link

Zip method doesn't add files, only folders #77

Open Maclay74 opened 8 months ago

Maclay74 commented 8 months ago

So I faced this problem running npm run zip.

I added build/** to fix this, not sure how it worked earlier.

gulp
  .src('build/**')
  .pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
  .pipe(gulp.dest('package'))

Some docs