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

chore: styles location #99

Merged
merged 1 commit into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ module.exports = {
Once the configuration file is set, it is possible to compile new styles which can be loaded into admin by using **STYLES** key in **UNFOLD** dict.

```bash
npx tailwindcss -o your_project/static/css/styles.css --watch --minify
npx tailwindcss -o your_project/static/css/styles.css --watch --minify
```

## Custom Admin Dashboard
Expand Down Expand Up @@ -644,7 +644,7 @@ At the moment project contains package.json with all dependencies required to co

```bash
npm install
npx tailwindcss -i styles.css -o src/unfold/static/unfold/css/styles.css --watch --minify
npx tailwindcss -i src/unfold/styles.css -o src/unfold/static/unfold/css/styles.css --watch --minify

npm run tailwind:watch # run after each change in code
npm run tailwind:build # run once
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "django-unfold",
"description": "Clean & minimal Django admin theme based on Tailwind CSS",
"scripts": {
"tailwind:build": "tailwindcss -i styles.css -o src/unfold/static/unfold/css/styles.css --minify",
"tailwind:watch": "tailwindcss -i styles.css -o src/unfold/static/unfold/css/styles.css --watch --minify"
"tailwind:build": "tailwindcss -i src/unfold/styles.css -o src/unfold/static/unfold/css/styles.css --minify",
"tailwind:watch": "tailwindcss -i src/unfold/styles.css -o src/unfold/static/unfold/css/styles.css --watch --minify"
},
"dependencies": {
"tailwindcss": "^3.3.1"
Expand Down
File renamed without changes.