My Laravel project is not compiling CSS files. I did a fresh install of Laravel with laravel new project,
then I ran npm install
and npm run dev.
The result I get is:
DONE Compiled successfully in 7112ms
Asset Size Chunks Chunk Names
/js/app.js 1.6 MiB /js/app [emitted] /js/app
The /css/app.css is missing in the list and app.css is not emitted.
By running npm run watch
(or watch-poll/hot), any changes made in app.scss is watched, and the building process is rerun. However, the result is the same - no app.css in the list of compiled files and no app.css generated.
I tried to create a new Laravel project on another computer and running npm run dev
on it works without a problem. Both run on Windows 10, node version v10.16.0, npm version 6.9.0.
I tried to completely reinstall Node (to latest 10.16.0) and create a new Laravel project from scratch but with no luck.
So I finaly solved it. The problem was that I have my workspace located on D:\www
and symlinked to my C:\Users\ondra\www
directory. If I start npm run dev
from the original location D:\www\project
, everything works OK. Why it is not working from symlinked C:\Users\ondra\www\project
is a mistery for me :)