diff --git a/generators/app/templates/webpack.config.js b/generators/app/templates/webpack.config.js index 7cc7be4..89561b2 100644 --- a/generators/app/templates/webpack.config.js +++ b/generators/app/templates/webpack.config.js @@ -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 {