From 4dd65dc27ead25b15c836c4623fc9cec319092a6 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Tue, 13 Feb 2018 03:23:16 +0000 Subject: [PATCH] Copy the sourcemap to examples too. --- copy-to-examples.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/copy-to-examples.js b/copy-to-examples.js index 538206dbb..7cea16bc4 100644 --- a/copy-to-examples.js +++ b/copy-to-examples.js @@ -2,10 +2,21 @@ let fs = require('fs-extra'); let sloc = require('node-sloc'); let source = './dist/phaser.js'; +let sourceMap = './dist/phaser.js.map'; let dest = '../phaser3-examples/public/build/dev.js'; +let destMap = '../phaser3-examples/public/build/phaser.js.map'; if (fs.existsSync(dest)) { + fs.copy(sourceMap, destMap, function (err) { + + if (err) + { + return console.error(err); + } + + }); + fs.copy(source, dest, function (err) { if (err)