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

upgrade webpack and fix watch scss bug #26

Merged
merged 2 commits into from Apr 4, 2018
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
fix watch lint scss
  • Loading branch information
trickpattyFH20 committed Apr 3, 2018
commit df32e541a8b4b52d74fe65f4975373dc97902d5d
@@ -76,7 +76,9 @@ lintOnChange.prototype.apply = function(compiler) {
}
compiler.plugin("done", () => {
const changedTimes = compiler.watchFileSystem.watcher.mtimes;
const changedFiles = Object.keys(changedTimes);
const changedFiles = Object.keys(changedTimes).filter((file) => {
return file.indexOf('.js') !== -1;
});
if (changedFiles.length) {
const args = ['run', 'lint.raw', '--', ...changedFiles];
if (process.argv.includes('--env.fix')) {
ProTip! Use n and p to navigate between commits in a pull request.