-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Browserify task only runs once in container #1180
Comments
@MrMMorris It's a watchify issue (see browserify/watchify#162 (comment)). I'm working on a fix. It's essentially a problem with the watcher running over NFS. |
@MrMMorris: Also, since watchify v2.5.0 |
@zertosh YESSSS! I'm so glad you knew what it was 😄 I was actually just starting to consider it might be something with the filesystem, but I'm glad I don't have to spam IRC anymore 😅 I eagerly await the release! |
@MrMMorris I just wrapped up the last bug in the 2.x series. I'm starting to work on 3.0.0, which will have the fix for your problem. Feel free to track the progress in browserify/watchify#168 |
@MrMMorris, I just published watchify 3.0.0. Checkout the docs on how to turn on polling, and that'll solve your container watching problem. |
@zertosh thanks you beautiful human! Alas, I am a js noob 👶 and I'm not sure exactly how to set the poll option. Is it like this? Or do I need a function? var browserifyTask = function(options) {
// Our app bundler
var appBundler = browserify({
entries: [options.src], // Only need initial file, browserify finds the rest
transform: [reactify], // We want to convert JSX to normal javascript
debug: options.development, // Gives us sourcemapping - AND HUGE FILE SIZE,
// set to false if runs too slow
cache: {}, packageCache: {}
});
appBundler = watchify(appBundler, {poll: true});
appBundler.on('update', rebundle); Thanks again for your help. |
@MrMMorris no problem. what you have looks correct. If you start to notice that it's taking up too many resources, then use the |
shoot, doesn't look like it's working 😞 appBundler = watchify(appBundler, {poll: true, ignoreWatch: true}); compass compiles every time, app only built once |
let me double-check that I have the new version running. But I would assume that adding the options would error on old versions? |
Oh, that might be it actually, ignore my rambling for now 😉 |
FRIGGIN YES ❤️ |
Thanks @zertosh! |
I haven't been able to find anything helpful elsewhere so I have come here 😅
I am running gulp in a Docker container and my compass task seems to be working. It compiles on every change. My browserify task, however, only builds the first time:
gulpfile.js:
Now this very well may be something with my docker setup (as everything works as it should outside of Docker), but considering how straight forward the Docker setup is, and that Compass works, I thought I would ask here to make sure.
I had initially thought it might be something to do with the ./ path used in the browserify task vs the compass path, but that doesn't change anything..
Any ideas on why browserify is only building once?
Let me know if you need more info. I'm not a node dev, but I will help clarify where I can 😐
The text was updated successfully, but these errors were encountered: