mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-13 19:45:26 +00:00
use nightmare for testing
This commit is contained in:
1
test/app/.gitignore
vendored
1
test/app/.gitignore
vendored
@@ -3,3 +3,4 @@ node_modules
|
||||
.sapper
|
||||
yarn.lock
|
||||
cypress/screenshots
|
||||
templates/.*
|
||||
@@ -10,9 +10,9 @@
|
||||
<link rel='icon' type='image/png' href='/favicon.png'>
|
||||
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('/service-worker.js');
|
||||
}
|
||||
// if ('serviceWorker' in navigator) {
|
||||
// navigator.serviceWorker.register('/service-worker.js');
|
||||
// }
|
||||
</script>
|
||||
|
||||
<!-- Sapper generates a <style> tag containing critical CSS
|
||||
|
||||
@@ -3,8 +3,4 @@ import { init } from '__app__';
|
||||
// `routes` is an array of route objects injected by Sapper
|
||||
init(document.querySelector('#sapper'), __routes__);
|
||||
|
||||
// if (__dev__) {
|
||||
// // Enable hot-module reloading
|
||||
// import('sapper/webpack/hmr');
|
||||
// if (module.hot) module.hot.accept();
|
||||
// }
|
||||
window.READY = true;
|
||||
Reference in New Issue
Block a user