-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathsw.js.html
33 lines (31 loc) · 1.22 KB
/
sw.js.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const version = '{{version}}';
const root = '{{root}}';
const rootStatic = '{{static}}';
const scripts = [
new Request('{{root}}/', { credentials: 'include' }),
'{{runner}}',
'{{root}}/bin/start.js?new=1',
'{{static}}/js/vendor/jquery-1.11.0.min.js',
'{{static}}/images/dave.min.svg',
'{{static}}/images/favicon.svg',
'{{static}}/images/jsbin_animated.gif',
'{{static}}/images/popout.png',
'{{static}}/images/github-32.png',
'{{static}}/js/prod/jsbin-{{version}}.min.js',
'{{static}}/js/prod/runner-{{version}}.min.js',
'{{static}}/js/prod/addon-tern-{{version}}.min.js',
'{{static}}/js/vendor/codemirror5/lib/codemirror.css?{{version}}',
'{{static}}/css/style.css?{{version}}',
'{{static}}/css/mobile.css?{{version}}',
'{{static}}/css/font.css?{{version}}',
'{{static}}/images/default-avatar.min.svg',
// processors
'{{static}}/js/vendor/JSXTransformer.js',
'{{static}}/js/vendor/marked.min.js',
'{{static}}/js/vendor/codemirror5/mode/markdown/markdown.js',
'{{static}}/js/vendor/jade.js?1.4.2',
'{{static}}/js/vendor/less.min.js',
'{{static}}/js/vendor/babel.min.js',
new Request('{{root}}/bin/user.js', { credentials: 'include' }),
];
importScripts('{{static}}/js/sw/index.js?{{version}}');