mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
Chunk out jslib and large modules to separate caches (#2331)
* Chunk out jslib and large modules to separate caches * It's sufficient to just extract maps from the source
This commit is contained in:
@@ -83,9 +83,6 @@ const plugins = [
|
||||
{ from: "./src/content/autofill.css", to: "content" },
|
||||
],
|
||||
}),
|
||||
new webpack.SourceMapDevToolPlugin({
|
||||
include: ["popup/main.js", "background.js"],
|
||||
}),
|
||||
new MiniCssExtractPlugin({
|
||||
filename: "[name].css",
|
||||
chunkFilename: "chunk-[id].css",
|
||||
@@ -110,7 +107,7 @@ const plugins = [
|
||||
|
||||
const config = {
|
||||
mode: ENV,
|
||||
devtool: false,
|
||||
devtool: ENV === "development" ? "eval-source-map" : "source-map",
|
||||
entry: {
|
||||
"popup/polyfills": "./src/popup/polyfills.ts",
|
||||
"popup/main": "./src/popup/main.ts",
|
||||
@@ -124,7 +121,7 @@ const config = {
|
||||
"notification/bar": "./src/notification/bar.js",
|
||||
},
|
||||
optimization: {
|
||||
minimize: false,
|
||||
minimize: true,
|
||||
splitChunks: {
|
||||
cacheGroups: {
|
||||
commons: {
|
||||
|
||||
Reference in New Issue
Block a user