Commit 061130e1 authored by dongxu's avatar dongxu Committed by 杨奕

Build: fix build locales, make sure only read `js` files (#9879)

parent 6dbbee35
......@@ -15,7 +15,11 @@ var transform = function(filename, name, cb) {
}, cb);
};
fileList.forEach(function(file) {
fileList
.filter(function(file) {
return /\.js$/.test(file);
})
.forEach(function(file) {
var name = basename(file, '.js');
transform(file, name, function(err, result) {
......@@ -32,4 +36,4 @@ fileList.forEach(function(file) {
console.log(file);
}
});
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment