mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-20 06:15:15 +00:00
fix location, so that runtime can be found from /tmp
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import app from 'sapper/runtime/app.js';
|
import app from '__app__';
|
||||||
import { detachNode } from 'svelte/shared.js';
|
import { detachNode } from 'svelte/shared.js';
|
||||||
|
|
||||||
const target = document.querySelector('__selector__');
|
const target = document.querySelector('__selector__');
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ module.exports = function create_app(src, dest, routes, options) {
|
|||||||
.join(' else ') + ' else return false;';
|
.join(' else ') + ' else return false;';
|
||||||
|
|
||||||
const main = template
|
const main = template
|
||||||
|
.replace('__app__', path.resolve(__dirname, '../runtime/app.js'))
|
||||||
.replace('__selector__', options.selector || 'main')
|
.replace('__selector__', options.selector || 'main')
|
||||||
.replace('// ROUTES', code);
|
.replace('// ROUTES', code);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user