Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Does not recompile required files #52

Open
calebeby opened this issue Nov 5, 2016 · 14 comments
Open

Does not recompile required files #52

calebeby opened this issue Nov 5, 2016 · 14 comments

Comments

@calebeby
Copy link

calebeby commented Nov 5, 2016

Hi, when I run brunch watch, and change a file that is not index.styl, it does not update.

Example:

run brunch watch

modify index.styl

It says info: compiled index.styl into main.css in 378 ms, and browsersync injects the new styles. Good ✅

modify components/idea-card/_index.styl, which is required by index.styl

I get info: compiled in 78 ms, but none of the changes are actually built

I have to restart brunch watch to get the changes. Not good ❌

@shvaikalesh
Copy link
Contributor

shvaikalesh commented Dec 2, 2016

Hey @calebeby, thanks for reaching out.

Please make sure you are using the latest version of Brunch and stylus-brunch.
The latest version of Brunch (atleast) compiles dependency parents even if modified file matches ignored convention. Even if globs imports are used.

@calebeby
Copy link
Author

calebeby commented Dec 2, 2016

OK. I'll check the versions this weekend, but I don't use brunch anymore.

@shvaikalesh
Copy link
Contributor

shvaikalesh commented Dec 2, 2016

That is sad to hear. If you have any feedback/suggestion regarding Brunch, we would ❤️ to communicate.

@calebeby
Copy link
Author

calebeby commented Dec 2, 2016

I was kind of frustrated by the number of brunch plugins for Jade, and I spent a lot of time trying to figure out which one I wanted. I ended up building my own build tool (https://github.com/glugjs/glug)

@calebeby
Copy link
Author

calebeby commented Dec 2, 2016

It has support for more templating engines through jstransformers.

However, it is pre-alpha, and lacking documentation.

@shvaikalesh
Copy link
Contributor

Yep, we had an issue with static compilers before v2.8, but now we have official https://github.com/brunch/jade-brunch.

@calebeby
Copy link
Author

calebeby commented Dec 2, 2016

Come to think of it, I might add a jstransformers input plugin for brunch.

@calebeby
Copy link
Author

calebeby commented Dec 2, 2016

I wanted to compile Jade files to HTML files and so I tried jaded brunch but it didn't work.

Why does Jade brunch say to use jaded brunch for flat files?

@shvaikalesh
Copy link
Contributor

Fixed in brunch/jade-brunch#33, thanks!
jstransformers plugin sounds nice 👍

@calebeby
Copy link
Author

calebeby commented Dec 3, 2016

Brunch is ^2.9.1

Stylus-brunch is ^2.8.0

@calebeby
Copy link
Author

calebeby commented Dec 3, 2016

I checked, and this behavior still exists.

@shvaikalesh
Copy link
Contributor

Hmm, does it exists w/o browser-sync-brunch (with manual page refresh)?

@calebeby
Copy link
Author

calebeby commented Dec 3, 2016

Yes, the issue persists.

@calebeby
Copy link
Author

calebeby commented Dec 3, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants