我有我的gruntfile.js這個簡單的代碼:「警告:未找到任務」babel「,請使用 - force繼續。」
module.exports = function (grunt)
{
require("load-grunt-tasks")(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
babel: {
options: {
sourceMap: true
},
dist: {
files: {
"dist/app.js": ["src/app.js"]
}
}
}
});
grunt.registerTask("default", ["babel"]);
};
但是告訴我,當運行這個錯誤:
Warning: Task "babel" not found. Use --force to continue.
Aborted due to warnings.
Process finished with exit code 3
任何幫助嗎?決不轉換從ECMAScript中6比5 :(
這裏我的文件:
http://www.mediafire.com/download/nabq78bs323u47b/DemoBable.zip
也試着解釋你想要做什麼 – davejal
我想要traslate javascript ecma 6(gam e.jsx)ecma 5使用babel – Chelendez
你能分享項目中的所有文件嗎? –