Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Tailwind appendix #256

Merged
merged 1 commit into from
Apr 28, 2022
Merged
Changes from all commits
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
17 changes: 2 additions & 15 deletions guides/appendix/live-reload.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To use Tailwind JIT with Ember, this guide follows the [Tailwind Getting Started

To get started, install the following dependencies:
```shell
npm install autoprefixer postcss tailwindcss
npm install tailwindcss
```

Then, from your project's root directory, add the following files:
Expand All @@ -41,19 +41,6 @@ Then, from your project's root directory, add the following files:
};
```

- `postcss.config.js`

```js {data-filename="postcss.config.js"}
'use strict';

module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}
```

- `tailwind-input.css`

```css {data-filename="tailwind-input.css"}
Expand All @@ -66,7 +53,7 @@ Now we need to add some scripts to the `package.json` to make
interacting with the tailwind CLI a little easier.

```diff {data-filename="package.json"}
+ "tailwind:build": "npx tailwindcss -i ./tailwind-input.css -o ./public/assets/tailwind.css",
+ "tailwind:build": "npx tailwindcss -i ./tailwind-input.css -o ./public/assets/tailwind.css --minify",
+ "tailwind:watch": "npx tailwindcss -i ./tailwind-input.css -o ./public/assets/tailwind.css --watch",
+ "build": "npm run tailwind:build && ember build --environment=production",
- "build": "ember build --environment=production",
Expand Down