Skip to content
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

netlify dev command doesnt build the css #2

Open
kamalhm opened this issue Jan 3, 2020 · 2 comments
Open

netlify dev command doesnt build the css #2

kamalhm opened this issue Jan 3, 2020 · 2 comments

Comments

@kamalhm
Copy link

kamalhm commented Jan 3, 2020

resulting in a css-less build output

steps to reproduce

  1. clone the repo
  2. run npm install
  3. run netlify dev
@Trolzie
Copy link
Contributor

Trolzie commented Jan 13, 2020

You need to npm run start to compile the CSS. The netlify dev will only serve it as far as I can see, and since your repo is new, it hasnt yet compiled the CSS for you.

From the README.md:

While running/developing locally, thw npm run start command will recompile the site as files are saved and this includes the CSS pipeline from Tailwind.

@henrik
Copy link

henrik commented Mar 7, 2020

I just got bit by the same thing.

I opened src/site/_includes/css/tailwind.css in my editor and saved it – that caused it to be generated.

netlify.toml says

[dev]
  command = "npm run start"

which I assumed to mean it already runs npm run start on netlify dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants