aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-02-19 01:03:09 -0500
committerDeterminant <ted.sybil@gmail.com>2019-02-19 01:03:09 -0500
commita6b9dadfe68921e6c7795518441109e77963ecd9 (patch)
treec368572137ea7d092fcc1a623609e4faa23ad20c /webpack.config.js
parent63fe414b6bf556fcc69e7065cfe96a642e54cf7f (diff)
support new tab page; fix bugs
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js
index da6d978..601c856 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -7,7 +7,8 @@ module.exports = (env, argv) => {
entry: {
index: "./src/index.tsx",
background: "./src/background.ts",
- popup: "./src/popup.tsx"
+ popup: "./src/popup.tsx",
+ tab: "./src/tab.tsx"
},
output: {
path: path.join(__dirname, "/dist"),
@@ -47,6 +48,11 @@ module.exports = (env, argv) => {
template: "./src/index.html",
filename: "./popup.html"
}),
+ new HtmlWebpackPlugin({
+ chunks: ['tab'],
+ template: "./src/tab.html",
+ filename: "./tab.html"
+ }),
new CopyWebpackPlugin([
{from:'./public/', to:'./'}
]),