diff --git a/extension/manifest.json b/extension/manifest.json index 0ef55cb..b2c2051 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -18,7 +18,7 @@ "content_scripts": [ { "matches": ["https://www.fimfiction.net/*", "https://fimfiction.net/*"], - "js": ["build/vendors-node_modules_autosize_dist_autosize_js-node_modules_font-awesome_fonts_fontawesome-we-7f0b12.js", "build/fimfic2epub.js"], + "js": ["build/fimfic2epub.js"], "css": ["inject.css"] } ], diff --git a/package-lock.json b/package-lock.json index 8eb4885..df0819b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -65,6 +65,7 @@ "node-loader": "^2.0.0", "path-browserify": "^1.0.1", "plugin-error": "^1.0.1", + "process": "^0.11.10", "raw-loader": "^4.0.2", "regenerator-runtime": "^0.13.7", "removeNPMAbsolutePaths": "^2.0.0", diff --git a/package.json b/package.json index 59ac349..c4cde6f 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,7 @@ "node-loader": "^2.0.0", "path-browserify": "^1.0.1", "plugin-error": "^1.0.1", + "process": "^0.11.10", "raw-loader": "^4.0.2", "regenerator-runtime": "^0.13.7", "removeNPMAbsolutePaths": "^2.0.0", diff --git a/webpack.config.js b/webpack.config.js index ce46bad..e1ca0bb 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -69,7 +69,8 @@ const bundleExtensionConfig = { plugins: [ // new (require('webpack-bundle-analyzer').BundleAnalyzerPlugin)() new webpack.ProvidePlugin({ - Buffer: ['buffer', 'Buffer'] + Buffer: ['buffer', 'Buffer'], + process: 'process/browser' }) ], performance: { @@ -77,11 +78,7 @@ const bundleExtensionConfig = { }, optimization: { concatenateModules: inProduction, - minimize: inProduction, - splitChunks: { - chunks: 'all', - automaticNameDelimiter: '_' - } + minimize: inProduction }, devtool: 'source-map', mode: inProduction ? 'production' : 'development'