Open mLihs opened 8 years ago
Hi i got an error -> "Warning: Trying to access beyond buffer length Use --force to continue." if i'am using the this script as grunttask.
'use strict';
var ase = require('ase-utils'); var fs = require('fs');
module.exports = function (grunt) { grunt.registerMultiTask('colorTable', 'Generate colors files for sass.', function () { grunt.log.writeln('Hello, world.'); var buffer = fs.readFileSync('./test/test.ase'); var output = ase.decode(buffer) //grunt.log(ase.decode(buffer)); })
}
Hmm, is that the same test.ase from this repository? It shouldn't cause that particular error. Can you run grunt --stack and report back with the output?
test.ase
grunt --stack
Hi i got an error -> "Warning: Trying to access beyond buffer length Use --force to continue." if i'am using the this script as grunttask.
'use strict';
var ase = require('ase-utils'); var fs = require('fs');
module.exports = function (grunt) { grunt.registerMultiTask('colorTable', 'Generate colors files for sass.', function () { grunt.log.writeln('Hello, world.'); var buffer = fs.readFileSync('./test/test.ase'); var output = ase.decode(buffer) //grunt.log(ase.decode(buffer)); })
}