-
Notifications
You must be signed in to change notification settings - Fork 200
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 makefile section in tailwindcss #1890
Conversation
tailwind-dev: | ||
tailwindcss -c tailwind/tailwind.config.js -i ./tailwind/app.css -o static/app.css --watch | ||
# Install npm packages. | ||
node_modules: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likely because you already have a node_modules directory. Can you delete it and try again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tried again (using this PR), but the same message
tailwindcss -c tailwind/tailwind.config.js -i ./tailwind/app.css -o static/app.css --watch | ||
# Install npm packages. | ||
node_modules: | ||
NODE_ENV=production npm ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need NODE_ENV=production
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it doesn't install devDependencies
node_modules: | ||
NODE_ENV=production npm ci | ||
|
||
# We rely on the `node_modules`. So if `node_modules` directory doesn't exist, calling `make tailwind-dev` will trigger `make node_modules`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So if
node_modules
directory doesn't exist
As make node_modules
didn't work for me I wasn't able to confirm this.
@mpscholten some questions ^^ |
static/app.css: | ||
tailwindcss -c tailwind/tailwind.config.js -i ./tailwind/app.css -o static/app.css --minify | ||
static/app.css: node_modules | ||
NODE_ENV=production node_modules/.bin/tailwind -c tailwind/tailwind.config.js -i ./tailwind/app.css -o static/app.css --minify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NODE_ENV=production node_modules/.bin/tailwind -c tailwind/tailwind.config.js -i ./tailwind/app.css -o static/app.css --minify | |
node_modules/.bin/tailwindcss -c tailwind/tailwind.config.js -i ./tailwind/app.css -o static/app.css --minify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK NODE_ENV=production
was needed before purging was automatic
Closed in favor of #1905 |
No description provided.