mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2025-04-27 15:17:19 +12:00
dont split chunks, fix process
This commit is contained in:
parent
819ad4eca3
commit
19ee93ab23
4 changed files with 6 additions and 7 deletions
|
@ -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"]
|
||||
}
|
||||
],
|
||||
|
|
1
package-lock.json
generated
1
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue