mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Copy the sourcemap to examples too.
This commit is contained in:
parent
8f4a1012fd
commit
4dd65dc27e
1 changed files with 11 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue