Skip to content

Remove scss files from complied sources #9

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
Oct 17, 2016

Conversation

manojdcoder
Copy link
Contributor

Is there any specific reason, why this plugin leaves the SCSS files inside complied project. Anyways those will be useless at that point right?

@NathanWalker
Copy link
Contributor

LGTM! @toddanglin this will help 👍

var path = filePath;
var parts = path.split('/');
var filename = parts[parts.length - 1];
return path.indexOf("App_Resources") === -1 && filename.indexOf("_") !== 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

@manojdcoder Any reason to leave prefixed files in the app packages? filename.indexOf("_")

What's the benefit? If none, probably makes sense to remove this check and just remove all .scss files outside of the App_Resources directory.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm going to assume this filter came from the converter.js file, where there is a need to explicitly filter-out SASS partials. I'll remove this one check and then merge.

@toddanglin toddanglin merged commit 0a07b33 into NativeScript:master Oct 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants