Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a7b8f47

Browse files
committed
Add command to watch tailwind config for changes and rebuild on changes
1 parent 49fba8b commit a7b8f47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ touch src/styles/tailwind.css
4646

4747
jq '.scripts={
4848
"build:style":"tailwind build src/styles/index.css -o src/styles/tailwind.css",
49+
"watch:style": "tailwind build src/styles/index.css -o src/styles/tailwind.css --watch",
4950
"start": "npm run build:style && react-scripts start",
5051
"build": "react-scripts build",
5152
"test": "react-scripts test",
@@ -56,5 +57,5 @@ mv package.json.temp package.json
5657
rm -rf src/index.css
5758
rm -rf src/App.css
5859

59-
sed -i 's/\.\/index.css/.\/styles\/index.css/' src/index.js
60+
sed -i 's/\.\/index.css/.\/styles\/tailwind.css/' src/index.js
6061
sed -i '/App.css/d' src/App.js

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /