1
私は、新しいタスクの使用NPMモジュールをしたいと思いますが、私は何の結果きません:私はgrunt done
を実行すると、私は、ちょうどにconsole.logを見ていないよ使用NPMモジュールregisterTask
grunt.registerTask('done', function() {
var prepend = require('prepend');
var file = 'app.bundleES6.js',
string = '// My string';
prepend(file, string, function(error) {
if (error)
console.error(error.message);
else
console.log('Yeah');
});
});
を:
をRunning "done" task
Done, without errors.
グランタレジスタタスクでnpmモジュールを使用する方法は知っていますか?
ありがとうございました!
ありがとうございました!完璧に働く –