Skip to content

Commit

Permalink
**/node_modules/** excluded. #26
Browse files Browse the repository at this point in the history
  • Loading branch information
ritwickdey committed Oct 6, 2017
1 parent a5a0274 commit b9cdc13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/live-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ LiveServer.start = function (options, callback) {
var ignored = [
function (testPath) { // Always ignore dotfiles (important e.g. because editor hidden temp files)
return testPath !== "." && /(^[.#]|(?:__|~)$)/.test(path.basename(testPath));
}
},
"**/node_modules/**"
];
if (options.ignore) {
ignored = ignored.concat(options.ignore);
Expand Down

1 comment on commit b9cdc13

@rjoydip-zz
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ritwickdey I think for issue #33 tj/node-language-classifier and ts95/lang-detector may help to detect programing lang.

Please sign in to comment.