Skip to content

Commit 9ca308e

Browse files
committed
add instruction comments
1 parent 3c414ea commit 9ca308e

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

lib/install/tailwind.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
const defaultTheme = require('tailwindcss/defaultTheme')
22

3+
// Uncomment this line if you want to add support for tailwind plugins
4+
// const usePlugin = require('./tailwind.plugins')
5+
36
module.exports = {
47
content: [
58
'./public/*.html',
@@ -18,5 +21,6 @@ module.exports = {
1821
require('@tailwindcss/forms'),
1922
require('@tailwindcss/aspect-ratio'),
2023
require('@tailwindcss/typography'),
24+
// usePlugin(pluginName) => plugin name is based on that defined in tailwind.plugins.yml
2125
]
2226
}

lib/install/tailwind.plugins.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Format
2+
# plugin_name: cdn URI
3+
# Example
4+
# daisyui: https://cdn.jsdelivr.net/npm/daisyui@2.18.1/dist/full.css

lib/install/tailwindcss.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
copy_file "#{__dir__}/dev", "bin/dev"
6363
chmod "bin/dev", 0755, verbose: false
6464

65+
say "Install postcss globally"
66+
run "npm i --location=global postcss"
67+
6568
say "Compile initial Tailwind build"
6669
run "rails tailwindcss:build"
67-
run "npm i --location=global postcss"

0 commit comments

Comments
 (0)