build for chrome

This commit is contained in:
2020-10-12 00:33:11 +02:00
parent 5a7282acba
commit c63ac20fe6
2 changed files with 91 additions and 4 deletions

View File

@@ -12,7 +12,9 @@
"clean": "rm -rf dist .cache web-ext-artifacts node_modules",
"dev": "parcel watch --no-hmr manifest.json src/dashboard/index.html",
"build": "parcel build --no-content-hash --no-source-maps --no-minify manifest.json src/dashboard/index.html",
"dist": "rm -rf dist && yarn run build && web-ext build -s dist --overwrite-dest"
"dist": "rm -rf dist && yarn run build && yarn pack:ff && yarn pack:crx",
"pack:crx": "crx pack ./dist -p ./crx.pem -o ora.crx",
"pack:ff": "web-ext build -s dist --overwrite-dest"
},
"browserslist": [
"last 2 chrome versions",
@@ -34,6 +36,7 @@
"devDependencies": {
"@types/firefox-webext-browser": "^78.0.1",
"@types/lodash": "^4.14.161",
"crx": "^5.0.1",
"parcel-bundler": "^1.12.4",
"parcel-plugin-svelte": "^4.0.6",
"parcel-plugin-web-extension": "^1.6.1",