get-default-config.js 615 B

1234567891011121314151617181920212223242526
  1. "use strict";
  2. /*
  3. Copyright 2018 Google LLC
  4. Use of this source code is governed by an MIT-style
  5. license that can be found in the LICENSE file or at
  6. https://opensource.org/licenses/MIT.
  7. */
  8. /**
  9. * @return {Object} A fresh object with the default config.
  10. *
  11. * @private
  12. */
  13. module.exports = () => ({
  14. chunks: [],
  15. exclude: [// Exclude source maps.
  16. /\.map$/, // Exclude anything starting with manifest and ending .js.
  17. /^manifest.*\.js?$/],
  18. excludeChunks: [],
  19. importsDirectory: '',
  20. importScripts: [],
  21. importWorkboxFrom: 'cdn',
  22. precacheManifestFilename: 'precache-manifest.[manifestHash].js'
  23. });