Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/fix lint on change #20

Merged
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Prev

done rr

  • Loading branch information
trickpattyFH20 committed Mar 30, 2018
commit c13afec7295de7d180d029f94766b2add3fa4091
@@ -74,7 +74,7 @@ lintOnChange.prototype.apply = function(compiler) {
if (process.argv.includes('--env.prod') || (process.argv.includes('--env.nolint') || process.env.NO_LINT)) {
return;
}
compiler.plugin("done", (watching, done) => {
compiler.plugin("done", () => {
const changedTimes = compiler.watchFileSystem.watcher.mtimes;
const changedFiles = Object.keys(changedTimes);
if (changedFiles.length) {
@@ -86,7 +86,6 @@ lintOnChange.prototype.apply = function(compiler) {
spawnSync('npm', args, { stdio: 'inherit'});
});
}
done();
});
};

ProTip! Use n and p to navigate between commits in a pull request.