Skip to content

Instantly share code, notes, and snippets.

@ryanmr
Created September 27, 2021 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanmr/731276804809c968763687269147e4d7 to your computer and use it in GitHub Desktop.
Save ryanmr/731276804809c968763687269147e4d7 to your computer and use it in GitHub Desktop.

Following the steps documented to get tailwind to work with snowpack, nothing happens.

My script uses npm-run-all as an intermediate parallel or sequential step to handle tailwind.

  "scripts": {
    "tailwind:start": "postcss ./public/tailwind.css -o ./public/tailwind.include.css -w",
    "tailwind:build": "postcss ./public/tailwind.css -o ./public/tailwind.include.css --env production",
    "snowpack:start": "snowpack dev",
    "snowpack:build": "snowpack build",
    "start": "run-p tailwind:start snowpack:start",
    "build": "run-s tailwind:build snowpack:build",
    "test": "web-test-runner \"src/**/*.test.tsx\"",
    "format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
    "lint": "prettier --check \"src/**/*.{js,jsx,ts,tsx}\""
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment