Do you have a clue how to get this to work with sapper?
For my sapper project I was able to get it running by following steps 1-3 as above then branching off as below:
Step 4: Create static/tailwind.css and add imports Step 5: Add <link rel='stylesheet' href='index.css' /> to src/template.html Step 6: Adjust run scripts as follows:
static/tailwind.css
<link rel='stylesheet' href='index.css' />
src/template.html
"scripts": { "dev": "run-p start:dev watch:tailwind", "build": "npm run build:tailwind && sapper build --legacy", "watch:tailwind": "postcss static/tailwind.css -o static/index.css -w", "build:tailwind": "NODE_ENV=production postcss static/tailwind.css -o static/index.css", "export": "sapper export --legacy", "start": "node __sapper__/build", "start:dev": "sapper dev", "cy:run": "cypress run", "cy:open": "cypress open", "test": "run-p --race dev cy:run" }
Then can simply start up with npm run dev
npm run dev
I've created a template for sapper based on this: github.com/jadbox/sapper-tailwind-...
npx degit "jadbox/sapper-template#rollup-tailwind" sapper-tailwind
Hi Jonathan, I see this in my editor when looking at index.svelte Error in svelte.config.js
Error: ENOENT: no such file or directory, uv_cwdsvelte
any ideas, the app seems to run ok.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Do you have a clue how to get this to work with sapper?
For my sapper project I was able to get it running by following steps 1-3 as above then branching off as below:
Step 4: Create
static/tailwind.css
and add importsStep 5: Add
<link rel='stylesheet' href='index.css' />
tosrc/template.html
Step 6: Adjust run scripts as follows:
Then can simply start up with
npm run dev
I've created a template for sapper based on this: github.com/jadbox/sapper-tailwind-...
npx degit "jadbox/sapper-template#rollup-tailwind" sapper-tailwind
Hi Jonathan, I see this in my editor when looking at index.svelte
Error in svelte.config.js
Error: ENOENT: no such file or directory, uv_cwdsvelte
any ideas, the app seems to run ok.