Add full *.map file support

This commit is contained in:
Nolan Lawson
2018-03-18 16:16:52 -07:00
parent cf90476255
commit fc2312eba6
3 changed files with 10 additions and 1 deletions

View File

@@ -77,6 +77,11 @@ export default function middleware({ routes, store }: {
cache_control: 'max-age=600'
}),
fs.existsSync(path.join(output, 'service-worker.js.map')) && serve({
pathname: '/service-worker.js.map',
cache_control: 'max-age=600'
}),
serve({
prefix: '/client/',
cache_control: 'max-age=31536000'