Skip to content

Commit

Permalink
Exclude node_modules from amd search
Browse files Browse the repository at this point in the history
  • Loading branch information
green3g committed May 12, 2016
1 parent 6a83281 commit 8ced6d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ var profile = {
// are typically binaries (images, etc.) and may be corrupted by the build system if it attempts to process
// them and naively assumes they are scripts.
copyOnly: function (filename, mid) {
return (/^cmv\/(images)\//.test(mid) && !/\.css$/.test(filename));
return (/^cmv\/(images)\//.test(mid) && !/\.css$/.test(filename)) ||
/\/node_modules\//.test(mid);
},

// Files that are AMD modules.
Expand Down

0 comments on commit 8ced6d2

Please sign in to comment.