Copy the sourcemap to examples too.

This commit is contained in:
Richard Davey 2018-02-13 03:23:16 +00:00
parent 8f4a1012fd
commit 4dd65dc27e

View file

@ -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)