2017-04-18 07:09:13 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2018-03-20 09:21:39 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
2018-06-27 14:32:03 +00:00
|
|
|
<link rel="manifest" href="<%= htmlWebpackPlugin.options.pwaPath %>manifest.json">
|
2018-03-20 09:21:39 +00:00
|
|
|
<meta name="renderer" content="webkit">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
|
|
<title>vue-element-admin</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script src=<%= htmlWebpackPlugin.options.path %>/tinymce4.7.5/tinymce.min.js></script>
|
|
|
|
<div id="app"></div>
|
|
|
|
<!-- built files will be auto injected -->
|
|
|
|
</body>
|
2018-06-27 12:47:46 +00:00
|
|
|
<script>
|
|
|
|
if ('serviceWorker' in navigator) {
|
2018-06-27 14:32:03 +00:00
|
|
|
navigator.serviceWorker.register('<%= htmlWebpackPlugin.options.pwaPath %>sw.js').then(function(registration) {
|
2018-06-27 12:47:46 +00:00
|
|
|
// Registration Success
|
|
|
|
console.log('[serviceWorker]: registration successful with scope: ', registration.scope)
|
|
|
|
}).catch(function(err) {
|
|
|
|
// Registration failed :(
|
|
|
|
console.log('[serviceWorker] registration failed', err)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
</script>
|
2017-04-18 07:09:13 +00:00
|
|
|
</html>
|