Skip to content

Commit

Permalink
fix(app): Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
thaiat committed Sep 19, 2016
1 parent 159aa66 commit d23c2e9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions generators/app/templates/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ var mode = process.env.MODE || 'dev';
var clientFolder = require('./.yo-rc.json')['generator-mcfly-ng2'].clientFolder;
var distFolder = path.join('dist', target, mode);

var orderByList = function(list) {
return function(chunk1, chunk2) {
var index1 = list.indexOf(chunk1.names[0]);
var index2 = list.indexOf(chunk2.names[0]);
if (index2 === -1 || index1 < index2) {
return -1;
}
if (index1 === -1 || index1 > index2) {
return 1;
}
return 0;
};
};
// var orderByList = function(list) {
// return function(chunk1, chunk2) {
// var index1 = list.indexOf(chunk1.names[0]);
// var index2 = list.indexOf(chunk2.names[0]);
// if (index2 === -1 || index1 < index2) {
// return -1;
// }
// if (index1 === -1 || index1 > index2) {
// return 1;
// }
// return 0;
// };
// };

var fileExistsSync = function(file) {
try {
Expand Down

0 comments on commit d23c2e9

Please # to comment.