Skip to content

Commit d6825a0

Browse files
committed
feat: lru cache lib integration for css style cache 100 mb
1 parent 2309019 commit d6825a0

File tree

9 files changed

+288
-27
lines changed

9 files changed

+288
-27
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ test/thirdparty/jasmine-reporters
5151
/src/thirdparty/bugsnag-performance.min.js
5252
/src/thirdparty/bugsnag-performance.min.js.map
5353
/src/thirdparty/no-minify/
54+
/src/thirdparty/lru-cache.js*
5455

5556
# ignore files copied from node_modules to src/thirdparty
5657
# https://github.com/phcode-dev/phoenix/issues/10

gulpfile.js/thirdparty-lib-copy.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ let copyThirdPartyLibs = series(
133133
// idb-keyval
134134
renameFile.bind(renameFile, 'node_modules/idb-keyval/dist/index.js', 'idb-keyval.js', 'src/thirdparty/'),
135135
copyLicence.bind(copyLicence, 'node_modules/idb-keyval/LICENCE', 'idb-keyval'),
136+
// lru-cache
137+
renameFile.bind(renameFile, 'node_modules/lru-cache/dist/esm/index.js', 'lru-cache.js', 'src/thirdparty/'),
138+
renameFile.bind(renameFile, 'node_modules/lru-cache/dist/esm/index.js.map', 'lru-cache.js.map', 'src/thirdparty/'),
139+
copyLicence.bind(copyLicence, 'node_modules/lru-cache/LICENSE', 'lru-cache'),
136140
// bootstrap
137141
copyFiles.bind(copyFiles, ['node_modules/bootstrap/dist/js/bootstrap.min.js',
138142
'node_modules/bootstrap/dist/js/bootstrap.min.js.map',

package-lock.json

Lines changed: 199 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
"requirejs": "^2.3.6",
114114
"tern": "^0.24.3",
115115
"tinycolor2": "^1.4.2",
116-
"underscore": "^1.13.4"
116+
"underscore": "^1.13.4",
117+
"lru-cache": "^10.2.0"
117118
}
118119
}

0 commit comments

Comments
 (0)