diff --git a/packages/electron-chrome-extensions/package.json b/packages/electron-chrome-extensions/package.json index 8fa2e86..f8ae461 100644 --- a/packages/electron-chrome-extensions/package.json +++ b/packages/electron-chrome-extensions/package.json @@ -4,10 +4,11 @@ "description": "Chrome extension support for Electron", "main": "dist/index.js", "scripts": { + "clean": "node ../../scripts/clean.js", "build": "tsc && webpack", "pretest": "esbuild spec/fixtures/crx-test-preload.ts --bundle --external:electron --outfile=spec/fixtures/crx-test-preload.js --platform=node", "test": "node ./script/spec-runner.js", - "prepublishOnly": "npm run build" + "prepublishOnly": "yarn clean && NODE_ENV=production yarn build" }, "keywords": [ "electron", diff --git a/packages/electron-chrome-extensions/webpack.config.js b/packages/electron-chrome-extensions/webpack.config.js index 353861c..7e067db 100644 --- a/packages/electron-chrome-extensions/webpack.config.js +++ b/packages/electron-chrome-extensions/webpack.config.js @@ -40,6 +40,7 @@ const libs = { ...webpackBase, target: 'electron-preload', + devtool: false, entry: { 'browser-action': './src/browser-action.ts',