vaderjs 2.1.9 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/plugins/tailwind.ts +1 -9
package/package.json
CHANGED
package/plugins/tailwind.ts
CHANGED
|
@@ -32,19 +32,11 @@ export default {
|
|
|
32
32
|
version: '0.0.2',
|
|
33
33
|
onBuildStart: async (vader) => {
|
|
34
34
|
if (!checkIfTailwindInstalled()) {
|
|
35
|
-
console.error('TailwindCSS is not installed. Please install it using `bun install tailwindcss @tailwindcss/postcss postcss
|
|
35
|
+
console.error('TailwindCSS is not installed. Please install it using `bun install tailwindcss @tailwindcss/postcss postcss-cli`\n more info: https://tailwindcss.com/docs/installation/using-postcss`')
|
|
36
36
|
process.exit(1)
|
|
37
37
|
}else{
|
|
38
38
|
initTailwind()
|
|
39
39
|
console.log('Building TailwindCSS...')
|
|
40
|
-
|
|
41
|
-
if(vader.isDev){
|
|
42
|
-
vader.onFileChange('tailwind.config.js', async () => {
|
|
43
|
-
console.log('Rebuilding TailwindCSS...')
|
|
44
|
-
await vader.runCommand(['bun', 'run', 'postcss', './public/styles.css', '-o', 'dist/public/tailwind.css'])
|
|
45
|
-
vader.injectHTML(`<link rel="stylesheet" href="/public/tailwind.css">`)
|
|
46
|
-
})
|
|
47
|
-
}
|
|
48
40
|
await vader.runCommand(['bun', 'run', 'postcss', './public/styles.css', '-o', 'dist/public/tailwind.css'])
|
|
49
41
|
vader.injectHTML(`<link rel="stylesheet" href="/public/tailwind.css">`)
|
|
50
42
|
|