mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-30 04:28:19 +02: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:
parent
b3daabc13f
commit
f4bf8b2e1d
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user