mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-18 04:35:10 +00:00
update sapper
This commit is contained in:
@@ -3,8 +3,8 @@ 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();
|
||||
}
|
||||
// if (__dev__) {
|
||||
// // Enable hot-module reloading
|
||||
// import('sapper/webpack/hmr');
|
||||
// if (module.hot) module.hot.accept();
|
||||
// }
|
||||
Reference in New Issue
Block a user