mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Removed checksum.
This commit is contained in:
parent
4dd65dc27e
commit
5a7a6c20a9
3 changed files with 1 additions and 30 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
});
|
|
@ -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');
|
||||
|
||||
/**
|
||||
|
|
|
@ -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'
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue