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

@@ -25,6 +25,10 @@ export async function exporter(export_dir: string, { basepath = '' }) {
sander.copyFileSync(build_dir, 'service-worker.js').to(export_dir, 'service-worker.js');
}
if (sander.existsSync(build_dir, 'service-worker.js.map')) {
sander.copyFileSync(build_dir, 'service-worker.js.map').to(export_dir, 'service-worker.js.map');
}
const port = await ports.find(3000);
const origin = `http://localhost:${port}`;