question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plain js watching

See original GitHub issue

With this setup:

mix
    .scripts(['resources/assets/js/functions.js', 'resources/assets/js/app.js'], 'public/js/app.js')
    .sass('resources/assets/sass/app.scss', 'public/css')
    .options({
        processCssUrls: false
    });

I don’t get notifications on compile but the compile happens. The other thing is that changes take effect after 2 or 3 compiles. I have a timestamp added to public/js/app.js.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
JeffreyWaycommented, Apr 11, 2017

mix.scripts() isn’t part of your core Webpack bundle, so that’s why you’re not seeing it. We could add a notification popup though.

0reactions
stephan-vcommented, Apr 12, 2017

Notification would be nice, any update on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Watch an object for changes in Vanilla JavaScript - Medium
Watch an object for changes in Vanilla JavaScript · Method 1: Polling · Method 2: Object.prototype.watch() · Method 3: Object.observe() · Method 4: ......
Read more >
Plain js watching · Issue #656 · laravel-mix/laravel-mix - GitHub
I don't get notifications on compile but the compile happens. The other thing is that changes take effect after 2 or 3 compiles....
Read more >
How to Watch for DOM Changes with JavaScript?
One way to watch for DOM changes in our JavaScript web app is to use the MutationObserver constructor. For instance, we can write:...
Read more >
You SHOULD Learn Vanilla JavaScript Before JS Frameworks
You should probably learn Vanilla JS before diving into a JavaScript framework. ... Watch JavaScript: Understanding the Weird Parts.
Read more >
Object.watch() for all browsers? - javascript - Stack Overflow
(Sorry for the cross-posting, but this answer I gave to a similar question works fine here). I have created a small object.watch shim...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found