locomotivemtl / locomotive-boilerplate

🚂 Front-end boilerplate for projects by Locomotive.
https://locomotivemtl-boilerplate.vercel.app/
MIT License
455 stars 71 forks source link

npm build will not build css if www/css folder deson't exit #158

Closed islam-hamza closed 3 months ago

islam-hamza commented 8 months ago

I understand that www is just a placeholder if that folder doesn't exist the build process will fail to generate styles with the following error:

Error: ENOENT: no such file or directory, open './www/assets/styles/main.css'

it generates js files without issues but it failed to build the styles any possible fixes ?

devenini commented 8 months ago

Hey! Good catch, I was able to reproduce the issue when I deleted the ./www folder. For now we don't have a fix. You can either create the directories ./www/assets/styles/ or change the styles "dest" path in your loconfig.json.

devenini commented 3 months ago

Fixed