mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
Bug 1750596 - Moving save to Pocket vendors into their own bundle. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D136157
This commit is contained in:
parent
eb763b09e7
commit
67a8bb6d9c
@ -42,6 +42,7 @@ browser/components/enterprisepolicies/schemas/schema.jsm
|
|||||||
browser/components/translation/cld2/
|
browser/components/translation/cld2/
|
||||||
# generated or library files in pocket
|
# generated or library files in pocket
|
||||||
browser/components/pocket/content/panels/js/tmpl.js
|
browser/components/pocket/content/panels/js/tmpl.js
|
||||||
|
browser/components/pocket/content/panels/js/vendor.bundle.js
|
||||||
browser/components/pocket/content/panels/js/main.bundle.js
|
browser/components/pocket/content/panels/js/main.bundle.js
|
||||||
|
|
||||||
# Ignore newtab files
|
# Ignore newtab files
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
<script src="js/vendor/jquery-2.1.1.min.js"></script>
|
<script src="js/vendor/jquery-2.1.1.min.js"></script>
|
||||||
<script src="js/vendor/handlebars.runtime.js"></script>
|
<script src="js/vendor/handlebars.runtime.js"></script>
|
||||||
<script src="js/tmpl.js"></script>
|
<script src="js/tmpl.js"></script>
|
||||||
|
<script src="js/vendor.bundle.js"></script>
|
||||||
<script src="js/main.bundle.js"></script>
|
<script src="js/main.bundle.js"></script>
|
||||||
<script src="js/home/entry.js"></script>
|
<script src="js/home/entry.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -12,21 +12,3 @@ object-assign
|
|||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** @license React v17.0.2
|
|
||||||
* react-dom.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** @license React v17.0.2
|
|
||||||
* react.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,17 @@
|
|||||||
|
/** @license React v17.0.2
|
||||||
|
* react-dom.production.min.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @license React v17.0.2
|
||||||
|
* react.production.min.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
@ -14,6 +14,7 @@
|
|||||||
<script src="js/vendor/handlebars.runtime.js"></script>
|
<script src="js/vendor/handlebars.runtime.js"></script>
|
||||||
<script src="js/vendor/jquery.tokeninput.min.js"></script>
|
<script src="js/vendor/jquery.tokeninput.min.js"></script>
|
||||||
<script src="js/tmpl.js"></script>
|
<script src="js/tmpl.js"></script>
|
||||||
|
<script src="js/vendor.bundle.js"></script>
|
||||||
<script src="js/main.bundle.js"></script>
|
<script src="js/main.bundle.js"></script>
|
||||||
<script src="js/saved/entry.js"></script>
|
<script src="js/saved/entry.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
<body class="pkt_ext_containersignup" aria-live="polite">
|
<body class="pkt_ext_containersignup" aria-live="polite">
|
||||||
<script src="js/vendor/handlebars.runtime.js"></script>
|
<script src="js/vendor/handlebars.runtime.js"></script>
|
||||||
<script src="js/tmpl.js"></script>
|
<script src="js/tmpl.js"></script>
|
||||||
|
<script src="js/vendor.bundle.js"></script>
|
||||||
<script src="js/main.bundle.js"></script>
|
<script src="js/main.bundle.js"></script>
|
||||||
<script src="js/signup/entry.js"></script>
|
<script src="js/signup/entry.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
@ -16,6 +16,7 @@ browser.jar:
|
|||||||
content/pocket/panels/saved.html (content/panels/saved.html)
|
content/pocket/panels/saved.html (content/panels/saved.html)
|
||||||
content/pocket/panels/signup.html (content/panels/signup.html)
|
content/pocket/panels/signup.html (content/panels/signup.html)
|
||||||
content/pocket/panels/style-guide.html (content/panels/style-guide.html)
|
content/pocket/panels/style-guide.html (content/panels/style-guide.html)
|
||||||
|
content/pocket/panels/js/vendor.bundle.js (content/panels/js/vendor.bundle.js)
|
||||||
content/pocket/panels/js/main.bundle.js (content/panels/js/main.bundle.js)
|
content/pocket/panels/js/main.bundle.js (content/panels/js/main.bundle.js)
|
||||||
content/pocket/panels/js/tmpl.js (content/panels/js/tmpl.js)
|
content/pocket/panels/js/tmpl.js (content/panels/js/tmpl.js)
|
||||||
content/pocket/panels/js/vendor (content/panels/js/vendor/*)
|
content/pocket/panels/js/vendor (content/panels/js/vendor/*)
|
||||||
|
@ -27,4 +27,15 @@ module.exports = {
|
|||||||
resolve: {
|
resolve: {
|
||||||
extensions: [".js", ".jsx"],
|
extensions: [".js", ".jsx"],
|
||||||
},
|
},
|
||||||
|
optimization: {
|
||||||
|
splitChunks: {
|
||||||
|
cacheGroups: {
|
||||||
|
vendor: {
|
||||||
|
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/,
|
||||||
|
name: "vendor",
|
||||||
|
chunks: "all",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user