incorporate Sirv, and add a sapper.start() function

This commit is contained in:
Rich Harris
2019-05-09 21:32:13 -04:00
parent 5c07080207
commit bedbcb834b
14 changed files with 82 additions and 35 deletions

View File

@@ -12,10 +12,10 @@ export default {
output: () => {
return {
path: `${dest}/client`,
path: `${dest}/client/sapper`,
filename: '[hash]/[name].js',
chunkFilename: '[hash]/[name].[id].js',
publicPath: `client/`
publicPath: `sapper/`
};
}
},
@@ -46,7 +46,7 @@ export default {
output: () => {
return {
path: dest,
path: `${dest}/service-worker`,
filename: '[name].js',
chunkFilename: '[name].[id].[hash].js'
}