Skip to content

Commit

Permalink
fix: allow for updating through zotero
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed May 9, 2022
1 parent 27dd733 commit 6ae6ef9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions esbuild.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
const path = require('path')
const rmrf = require('rimraf')
const fs = require('fs')
const esbuild = require('esbuild')

fs.existsSync(path.join(__dirname, 'gen')) &&
fs.rmSync(path.join(__dirname, 'gen'), { recursive: true, force: true })

require('zotero-plugin/copy-assets')
require('zotero-plugin/rdf')
require('zotero-plugin/version')
require('zotero-plugin/rdf')
const { sassPlugin } = require('esbuild-sass-plugin')

async function build() {
rmrf.sync('gen')
await esbuild.build({
bundle: true,
format: 'iife',
target: ['firefox60'],
entryPoints: ['content/zotero-night.ts'],
outdir: 'build/content',
color: true,
plugins: [sassPlugin()],
})
}

Expand Down

0 comments on commit 6ae6ef9

Please sign in to comment.