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.

infinite loop on watch when require the output of generated css in app.js

See original GitHub issue
  • Laravel Mix Version: (1.6.1)
  • Node Version (v8.8.1):
  • NPM Version (5.5.1):
  • OS: macOS High Sierra 10.13.1

Description:

I tried to require app.css file from app.js, because I have more than one language using import or require

Steps To Reproduce:

first i install new laravel project from composer create-project --prefer-dist laravel/laravel blog

after that i run npm install

then edit blog/resources/assets/js/app.js and add require('../../../public/css/app.css'); https://webpack.github.io/docs/stylesheets.html#using-css

then run npm run watch

the infinite loop on watch will start

how can i fix that

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Qanahcommented, Nov 21, 2017

@devcircus I’m using default setup

0reactions
Qanahcommented, Dec 4, 2018

close it I am sorry this miss understanding from me

Read more comments on GitHub >

github_iconTop Results From Across the Web

infinite loop on watch when require the output of generated ...
I am trying to understand, what is the content of ./public/css/app.css . Does this file include your custom css code? Can you change...
Read more >
infinite loop on watch when require the output of generated ...
infinite loop on watch when require the output of generated css in app.js.
Read more >
gulp watch task causes infinite loop - Stack Overflow
my gulp watch tasks causes an infinite loop in the terminal and it also creates a a lot more .min.js files than expected....
Read more >
Loops in CSS Preprocessors | CSS-Tricks
If you've ever watched old sci-fi flicks, you know how powerful loops can be. Feed your robot nemesis an infinite loop, and kaboom....
Read more >
Just-in-Time Mode - Tailwind CSS
Since JIT mode generates your CSS on-demand by scanning your template files, it's crucial that you configure the purge option in your tailwind.config.js...
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