mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-19 13:55:21 +00:00
add some tests - closes #10
This commit is contained in:
10
test/app/templates/main.js
Normal file
10
test/app/templates/main.js
Normal file
@@ -0,0 +1,10 @@
|
||||
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();
|
||||
// }
|
||||
Reference in New Issue
Block a user