Web ext integration for dev mode(#116)

* add web-ext dep

* create xrun tasks to wrap running extension targets

* add wait-on dep to delay launch of task when ready

* add legacy wait files for web-ext scripts

* create a dev task for next builds

* add dev:legacy task to allow for a quick dev mode

* reuse watch task to have dev env
This commit is contained in:
Vu Nguyen
2021-02-07 00:08:00 -08:00
committed by GitHub
parent 8ade367b3f
commit 5958155a04
5 changed files with 3743 additions and 13 deletions

View File

@@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/no-unsafe-call */
import { join } from 'path';
import * as webpack from 'webpack';
import { CleanWebpackPlugin } from 'clean-webpack-plugin';
import CopyPlugin from 'copy-webpack-plugin';
type BrowserTypes = 'chrome' | 'firefox';
@@ -40,7 +39,6 @@ const getConfigByBrowser = (isProd: boolean, browser: BrowserTypes): webpack.Con
path: join(__dirname, 'dist', browser),
},
plugins: [
new CleanWebpackPlugin(),
new CopyPlugin({
patterns: [
{ from: cssFolder, to: 'public/css' },