Files
Jeffrey Posnick c6d4b66ab3 Rollup bundles in generateSW, and more for v5 (#2068)
* WIP.

* GenerateSW with code splitting

* More WIP.

* WIP/

* Support a custom fs for rollup output

* Separate the bundling from the writing

* Remove generateSWString

* Remove the generateSWString test

* Use underscore separators.

* Test remidiation.

* generateSW test remediation

* Linting.

* Fixed the InjectManifest tests.

* Fixed getManfiest test.

* Added an extra dependency.

* populateSWTemplate isn't async

* bundle and escape-regexp unit tests

* Test for the existence of output files.

* Return filePaths from build commands.

* Change to log message.

* Ensure swSrc and swDest are different

* Set moduleSideEffects to false

* Explicitly require @babel/preset-env

* Review feedback

* Review feedback.

* __WB_MANIFEST again

* Use a module registry

* Linting.

* Review feedback.
2019-07-12 14:29:21 -04:00

25 lines
529 B
JavaScript

/*
Copyright 2018 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
importScripts('./sample-import.js');
const precache = (input) => {
// no-op
};
precache([]);
// The automatic injection will happen here:
workbox.precaching.precacheAndRoute(self.__WB_MANIFEST);
// Then, call precache again:
workbox.precaching.precacheAndRoute([
'/extra-assets/example.1234.css',
'/extra-assets/example-2.1234.js',
]);