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

Modifying a partial file does not trigger a re-compile #25

Open
treyhunner opened this issue Jul 6, 2015 · 6 comments
Open

Modifying a partial file does not trigger a re-compile #25

treyhunner opened this issue Jul 6, 2015 · 6 comments

Comments

@treyhunner
Copy link

I have a _partial.scss file imported in my main app.scss file. Modifying and saving _partial.scss does not trigger the SCSS to be re-compiled, but saving app.scss does.

@stevenschobert
Copy link
Owner

What are you using to monitor changes and re-compile? Sounds like something metalsmith-sass doesn't handle by itself :)

@treyhunner
Copy link
Author

I am using metalsmith-watch, but I didn't think that was causing the re-compile because it doesn't re-compile the CSS when I modify an HTML file, but it does when I modify an SCSS file that doesn't start with _.

I'm not sure where to file this bug.

Could this be sass that's doing the monitoring?

@stevenschobert
Copy link
Owner

No worries, I'm sure we can track it down!

Can you share your metalsmith settings?

@ryanAbbott
Copy link

I ran into this problem today. The issue is in the configuration of metalsmith-watch. Adding the middle line in the 'paths' array triggers the reloading for all sass/scss files:

.use(watch({
     paths: {
        "${source}/**/*": true,
        "${source}/sass/*": "**/*.scss",
        "templates/**/*": "**/*.md",
},
livereload: true,

}))

@lokenx
Copy link

lokenx commented Nov 17, 2015

This is still an issue I think. Changes are detected, but changes are being updated in css files.

[metalsmith-watch] ✔︎ src/scss/partials/_posts-list.scss changed
[metalsmith-watch] - Updating 1 file...
[metalsmith-watch] ✔︎ 13 files reloaded

There's an open issue on the metalsmith-watch repo too. Any ideas what to do?

@samuelgoldenbaum
Copy link

any progress on this?

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

No branches or pull requests

5 participants