├── .babelrc ├── .eslintignore ├── .eslintrc.js ├── .flowconfig ├── .github ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── deploy.sh ├── docs ├── node_modules │ └── .yarn-integrity ├── postcss.config.js ├── src │ ├── Body.js │ ├── Footer.js │ ├── Head.js │ ├── Main.js │ ├── app.js │ ├── index.html │ ├── normalize.scss │ ├── stylesheet.scss │ └── sw.js ├── webpack │ ├── baseConfig.js │ ├── developmentConfig.js │ └── productionConfig.js └── yarn.lock ├── flow ├── interfaces │ └── mocha.js └── stubs │ └── url-loader.js ├── package.json ├── src ├── browser │ ├── applyUpdate.js │ └── registerEvents.js ├── index.js ├── index.spec.js ├── runtime.js ├── runtimeLoader.js └── runtimeTemplate.js ├── test ├── mocha.opts ├── test-build-entry.js ├── test-build-sw.js └── webpack3 │ ├── index.js │ ├── package.json │ └── yarn.lock └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/.babelrc -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | /lib 3 | /docs/dist 4 | /flow/interfaces 5 | /tmp-build 6 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/.flowconfig -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/.github/CONTRIBUTING.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | node_modules 3 | /lib 4 | /docs/dist 5 | .idea/ 6 | tmp-build/ 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/README.md -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/deploy.sh -------------------------------------------------------------------------------- /docs/node_modules/.yarn-integrity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/node_modules/.yarn-integrity -------------------------------------------------------------------------------- /docs/postcss.config.js: -------------------------------------------------------------------------------- 1 | // @flow weak 2 | 3 | module.exports = {} 4 | -------------------------------------------------------------------------------- /docs/src/Body.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/src/Body.js -------------------------------------------------------------------------------- /docs/src/Footer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/src/Footer.js -------------------------------------------------------------------------------- /docs/src/Head.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/src/Head.js -------------------------------------------------------------------------------- /docs/src/Main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/src/Main.js -------------------------------------------------------------------------------- /docs/src/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/src/app.js -------------------------------------------------------------------------------- /docs/src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/src/index.html -------------------------------------------------------------------------------- /docs/src/normalize.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/src/normalize.scss -------------------------------------------------------------------------------- /docs/src/stylesheet.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/src/stylesheet.scss -------------------------------------------------------------------------------- /docs/src/sw.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/src/sw.js -------------------------------------------------------------------------------- /docs/webpack/baseConfig.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/webpack/baseConfig.js -------------------------------------------------------------------------------- /docs/webpack/developmentConfig.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/webpack/developmentConfig.js -------------------------------------------------------------------------------- /docs/webpack/productionConfig.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/webpack/productionConfig.js -------------------------------------------------------------------------------- /docs/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/docs/yarn.lock -------------------------------------------------------------------------------- /flow/interfaces/mocha.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/flow/interfaces/mocha.js -------------------------------------------------------------------------------- /flow/stubs/url-loader.js: -------------------------------------------------------------------------------- 1 | // @flow weak 2 | 3 | export default '' 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/package.json -------------------------------------------------------------------------------- /src/browser/applyUpdate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/src/browser/applyUpdate.js -------------------------------------------------------------------------------- /src/browser/registerEvents.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/src/browser/registerEvents.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/src/index.js -------------------------------------------------------------------------------- /src/index.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/src/index.spec.js -------------------------------------------------------------------------------- /src/runtime.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/src/runtime.js -------------------------------------------------------------------------------- /src/runtimeLoader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/src/runtimeLoader.js -------------------------------------------------------------------------------- /src/runtimeTemplate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/src/runtimeTemplate.js -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/test/mocha.opts -------------------------------------------------------------------------------- /test/test-build-entry.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/test/test-build-entry.js -------------------------------------------------------------------------------- /test/test-build-sw.js: -------------------------------------------------------------------------------- 1 | // intentionally left empty 2 | -------------------------------------------------------------------------------- /test/webpack3/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/test/webpack3/index.js -------------------------------------------------------------------------------- /test/webpack3/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/test/webpack3/package.json -------------------------------------------------------------------------------- /test/webpack3/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/test/webpack3/yarn.lock -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliviertassinari/serviceworker-webpack-plugin/HEAD/yarn.lock --------------------------------------------------------------------------------