Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Svelte setup example not working #37

Open
ghost opened this issue Sep 30, 2019 · 8 comments
Open

Svelte setup example not working #37

ghost opened this issue Sep 30, 2019 · 8 comments

Comments

@ghost
Copy link

ghost commented Sep 30, 2019

First issue: Running "dev": "run-p start:dev autobuild watch:build" results in ERROR: Task not found: "watch:build". Changing watch:build to --watch:build fixes this.

Second issue: To see the result of applying tailwind classes live in the browser, everything needs to be rebuilt by running the build script—I assume that's not the intended behavior.

@mayashavin
Copy link

@Dyslexicon or you can change it to "watch:tailwind". it will also work.

mayashavin pushed a commit to mayashavin/setup-examples that referenced this issue Oct 18, 2019
mayashavin pushed a commit to mayashavin/setup-examples that referenced this issue Oct 18, 2019
…m:mayashavin/setup-examples into tailwindlabs#37-script-not-correct-svelte
@rlaferla
Copy link

rlaferla commented Oct 28, 2019

I'm running into problems with it. For one, it shouldn't say that it's "really simple" because it really isn't -- just to set expectations. There also needs to be mention of "npm-run-all" being required.

@ghost
Copy link
Author

ghost commented Oct 28, 2019

There is an article which shows how to set up Svelte with Tailwind that I used to great effect. I would update the readme to reflect that and make a pull request, but it doesn't seem like this repo is being monitored. So, here is the article: Using TailwindCSS with SvelteJS.

@quantuminformation
Copy link

Is the svelte example the same as you can use with Sapper?

@ghost
Copy link
Author

ghost commented Nov 5, 2019

@quantuminformation I believe the setup in the article I linked would work similarly with Sapper. Only one way to find out...

@quantuminformation
Copy link

@heliosnarcissus
Copy link

heliosnarcissus commented Aug 13, 2020

i got frustrated following the instructions I almost punched my monitor in.
especially it didnt mention you need to instal npm-run-all , had to Google the errors in my terminal . NPM RUN DEV doesnt work either.

Here's how you write a tutorial:
ACTUALLY START FROM SCRATCH AND FOLLOW WHAT YOU WROTE!!!!

@pascalandy
Copy link

pascalandy commented Jan 5, 2021

One day I'll find the stack ... one day ...

Stack

I'm looking to build landing page (not a blog)

  • TailwindCSS V2
  • Svelte with a 3 pages template so I can understand the relations between the pages
  • AlpineJS
  • Easy to copy-paste TailwindUI examples
  • yarn && yarn dev && yarn build

optimizations I expect

  • purge css
  • minified css/html/js
  • image compression / resize to responsive key points
  • image easy loading
  • Lighthouse 100%, and more stuff that a framework should care for :)

CI

then CI everything via Github Actions (that's the part I'm good at) + CD

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

No branches or pull requests

5 participants