Skip to content

Add ignoreInitial back to watcher options and fix initial transpilation #79

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

Merged
merged 1 commit into from
May 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/lib/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ function convert(logger, projectDir, appDir, appResourcesDir, options) {
};

if (options.watch) {
createWatcher(data);
return;
return createWatcher(data);
}

return sassCompiler.compile(data);
Expand All @@ -40,6 +39,8 @@ function createWatcher(data) {
data.logger[message.logLevel](message.message);
}
});

return sassCompiler.compile(data);
}

function dispose() {
Expand Down
1 change: 1 addition & 0 deletions src/lib/watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var appResourcesDir = args.appResourcesDir;
var watchPromisesChain = Promise.resolve();

var watcherOptions = {
ignoreInitial: true,
cwd: appDir,
awaitWriteFinish: {
pollInterval: 100,
Expand Down