@@ -6,7 +6,11 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
66module . exports = ( env , argv ) => {
77 const browser = env . BROWSER ?? 'chrome' ;
88 return {
9- entry : { background : './src/background/index.ts' , content : './src/content/index.ts' , options : './src/options/options.ts' } ,
9+ entry : {
10+ background : './src/background/index.ts' ,
11+ content : './src/content/index.ts' ,
12+ options : './src/options/options.ts' ,
13+ } ,
1014 output : {
1115 filename : '[name].bundle.js' ,
1216 path : path . resolve ( __dirname , `dist/${ browser } ` ) ,
@@ -25,19 +29,17 @@ module.exports = (env, argv) => {
2529 extensions : [ '.tsx' , '.ts' , '.js' ] ,
2630 } ,
2731 experiments : {
28- topLevelAwait : true
32+ topLevelAwait : true ,
2933 } ,
3034 plugins : [
3135 new HtmlWebpackPlugin ( {
3236 filename : 'options.html' ,
3337 template : './src/options/options.html' ,
3438 chunks : [ ] ,
35- minify : argv . mode === 'production'
39+ minify : argv . mode === 'production' ,
3640 } ) ,
3741 new CopyPlugin ( {
38- patterns : [
39- { from : './src/icons' , to : 'icons' } ,
40- ] ,
42+ patterns : [ { from : './src/icons' , to : 'icons' } ] ,
4143 } ) ,
4244 new MergeJsonWebpackPlugin ( {
4345 space : 2 ,
0 commit comments