phoenixframework / tailwind

An installer for tailwind
MIT License
473 stars 60 forks source link

assets.deploy line replace or compliment existing? #4

Closed ryanwinchester closed 2 years ago

ryanwinchester commented 2 years ago

In the readme, it says:

make sure you have a assets.deploy alias for deployments, which will also use the --minify option:

"assets.deploy": ["tailwind default --minify", ..., "phx.digest"]

However, it's not entirely clear what it means in the context of an existing Phoenix project that already has an assets.deploy alias.

Does that mean we replace the existing one:

- "assets.deploy": ["esbuild default --minify", "phx.digest"]
+ "assets.deploy": ["tailwind default --minify", "phx.digest"]

Or that we update it to:

- "assets.deploy": ["esbuild default --minify", "phx.digest"]
+ "assets.deploy": ["tailwind default --minify", "esbuild default --minify", "phx.digest"]
rowofpixels commented 2 years ago

You keep esbuild there if you want to keep using it for your javascript. So for me I have:

"assets.deploy": ["tailwind default --minify", "esbuild default --minify", "phx.digest"]