Farewell checksum?!

This commit is contained in:
photonstorm 2017-08-16 14:12:58 +01:00
parent 244e6535b5
commit 763b772aed
4 changed files with 7 additions and 4 deletions

3
.gitignore vendored
View file

@ -12,4 +12,5 @@ node_modules/
# Build
dist/
/npm-debug.log
out/
out/
v3/src/checksum.js

2
v3/.gitignore vendored
View file

@ -14,3 +14,5 @@ dist/
/npm-debug.log
out/
/src/checksum.js
./src/checksum.js
./src/checksum.*

View file

@ -5,7 +5,7 @@ var v = uuid.v1();
var output = [
'var CHECKSUM = {',
'build: \'' + v + '\'',
' build: \'' + v + '\'',
'};',
'module.exports = CHECKSUM;'
];
@ -13,7 +13,7 @@ var output = [
// 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'), function (error) {
fs.writeFile('./src/checksum.js', output.join('\n'), { encoding: 'utf8', flag: 'w' }, function (error) {
if (error)
{

View file

@ -1,4 +1,4 @@
var CHECKSUM = {
build: 'ce0b7300-8279-11e7-a43d-997ba01bf63f'
build: '6d02bf40-8284-11e7-beb2-d79b58eb094c'
};
module.exports = CHECKSUM;