From 5a7a6c20a92292f2eced000f111c55410f3d0c88 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Tue, 13 Feb 2018 03:23:29 +0000 Subject: [PATCH] Removed checksum. --- create-checksum.js | 27 --------------------------- src/boot/DebugHeader.js | 1 - webpack.config.js | 3 +-- 3 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 create-checksum.js diff --git a/create-checksum.js b/create-checksum.js deleted file mode 100644 index 16b0142a0..000000000 --- a/create-checksum.js +++ /dev/null @@ -1,27 +0,0 @@ -var fs = require('fs-extra'); -var uuid = require('uuid'); - -var v = uuid.v1(); - -var output = [ - 'var CHECKSUM = {', - ' build: \'' + v + '\'', - '};', - 'module.exports = CHECKSUM;' -]; - -// Should output a json file, but webpack2 json-loader is broken -// at the moment, so we're outputting a js file instead - -fs.writeFile('./src/checksum.js', output.join('\n'), { encoding: 'utf8', flag: 'w' }, function (error) { - - if (error) - { - throw error; - } - else - { - console.log('Building #' + v); - } - -}); diff --git a/src/boot/DebugHeader.js b/src/boot/DebugHeader.js index c5015f156..00b42caef 100644 --- a/src/boot/DebugHeader.js +++ b/src/boot/DebugHeader.js @@ -4,7 +4,6 @@ * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ -var CHECKSUM = require('../checksum'); var CONST = require('../const'); /** diff --git a/webpack.config.js b/webpack.config.js index 6b7807925..9d819e7b3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -39,12 +39,11 @@ module.exports = { }), new WebpackShellPlugin({ - onBuildStart: 'node create-checksum.js', onBuildEnd: 'node copy-to-examples.js' }) ], - devtool: 'inline-source-map' + devtool: 'source-map' };