Skip to content

Commit

Permalink
Merge pull request #147 from surgeforward/default-html-type
Browse files Browse the repository at this point in the history
Make the HTML options the default
  • Loading branch information
stephenplusplus committed May 22, 2015
2 parents 52bfcab + 5792887 commit 571d469
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wiredep.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ function mergeFileTypesWithDefaults(optsFileTypes) {
var fileTypes = $._.clone(fileTypesDefault, true);

$._(optsFileTypes).each(function (fileTypeConfig, fileType) {
fileTypes[fileType] = fileTypes[fileType] || {};
// fallback to the default type for all html-like extensions (php, twig, hbs, etc)
fileTypes[fileType] = fileTypes[fileType] || fileTypes['default'];
$._.each(fileTypeConfig, function (config, configKey) {
if ($._.isPlainObject(fileTypes[fileType][configKey])) {
fileTypes[fileType][configKey] =
Expand Down

0 comments on commit 571d469

Please sign in to comment.