mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-03-12 04:04:50 +00:00
serve assets from memory, use caching
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports = function create_app(src, dest, routes, options) {
|
||||
'{}' :
|
||||
`{ ${route.dynamic.map((part, i) => `${part}: match[${i + 1}]`).join(', ') } }`;
|
||||
|
||||
return `{ pattern: ${route.pattern}, params: match => (${params}), load: () => import('${src}/${route.file}') }`
|
||||
return `{ pattern: ${route.pattern}, params: match => (${params}), load: () => import(/* webpackChunkName: "${route.id}" */ '${src}/${route.file}') }`
|
||||
})
|
||||
.join(',\n\t');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user