Skip to content

Commit

Permalink
~fix extension zipping
Browse files Browse the repository at this point in the history
  • Loading branch information
qunash committed Jan 24, 2023
1 parent 0c0513e commit 396a302
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import tailwindcss from "tailwindcss";
import autoprefixer from "autoprefixer";
import postcssPlugin from "esbuild-style-plugin";
import copyStaticFilesPlugin from "esbuild-copy-files-plugin";
import path from 'path';


const buildDir = "build";
const minify = process.argv.includes("--minify");
Expand Down Expand Up @@ -82,6 +84,7 @@ async function addFilesToZip(archive, browser) {
if (entryStat.isDirectory()) {
archive.directory(`build/${entry}`, entry);
} else {
if (path.extname(entry) === ".zip") continue;
if (entry === "manifest.json") continue;
archive.file(`build/${entry}`, { name: entry });
}
Expand Down

0 comments on commit 396a302

Please sign in to comment.