Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Bare-Bones/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ project/

{% if is_tailwind -%}
### Tailwind
Follow the instructions to install Tailwind CSS (make sure to install version 4):
1. Install npm: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
2. Install the Tailwind CSS CLI: https://tailwindcss.com/docs/installation
2. Install the Tailwind CSS CLI: https://tailwindcss.com/docs/installation/tailwind-cli
3. Run the following command in the root of the project to start the Tailwind CSS compiler:

```bash
npx tailwindcss -i ./input.css -o ./assets/tailwind.css --watch
npx @tailwindcss/cli -i ./input.css -o ./assets/tailwind.css --watch
```
{%- endif %}

Expand Down
1 change: 0 additions & 1 deletion Bare-Bones/conditional-files.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const IS_TAILWIND_VAR = "is_tailwind";

let is_tailwind = variable::get(IS_TAILWIND_VAR);
if !is_tailwind {
file::delete("tailwind.config.js");
file::delete("input.css");
file::delete("assets/tailwind.css");
}
4 changes: 1 addition & 3 deletions Bare-Bones/input.css
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@import "tailwindcss";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per the documentation, it's possible to add @config "tailwind.config.js"; to the input.css file, but why remove it afterward?

image

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is supported for backward compatibility. For that reason, I think that it is not expected that new projects use js config files.

9 changes: 0 additions & 9 deletions Bare-Bones/tailwind.config.js

This file was deleted.

5 changes: 3 additions & 2 deletions Jumpstart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ project/

{% if is_tailwind -%}
### Tailwind
Follow the instructions to install Tailwind CSS (make sure to install version 4):
1. Install npm: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
2. Install the Tailwind CSS CLI: https://tailwindcss.com/docs/installation
2. Install the Tailwind CSS CLI: https://tailwindcss.com/docs/installation/tailwind-cli
3. Run the following command in the root of the project to start the Tailwind CSS compiler:

```bash
npx tailwindcss -i ./input.css -o ./assets/tailwind.css --watch
npx @tailwindcss/cli -i ./input.css -o ./assets/tailwind.css --watch
```
{%- endif %}

Expand Down
1 change: 0 additions & 1 deletion Jumpstart/conditional-files.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const IS_FULLSTACK_VAR = "is_fullstack";

let is_tailwind = variable::get(IS_TAILWIND_VAR);
if !is_tailwind {
file::delete("tailwind.config.js");
file::delete("input.css");
file::delete("assets/tailwind.css");
}
Expand Down
4 changes: 1 addition & 3 deletions Jumpstart/input.css
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@import "tailwindcss";
9 changes: 0 additions & 9 deletions Jumpstart/tailwind.config.js

This file was deleted.