Skip to content

Commit f027cd7

Browse files
authored
Merge pull request #11 from sonofmagic/dev
Release: tw-patch 1.1.0
2 parents 9d56f43 + b13ea17 commit f027cd7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2445
-199
lines changed

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
registry=http://registry.npmmirror.com/
2-
shamefully-hoist=true
2+
shamefully-hoist=true
3+
git-checks=false

apps/next-app/next.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ const { webpackPlugin: utwm } = require('unplugin-tailwindcss-mangle')
55
const nextConfig = {
66
reactStrictMode: true,
77
webpack: (config) => {
8-
config.plugins.push(utwm())
8+
config.plugins.push(utwm({
9+
classSetOutput: true,
10+
classMapOutput: true
11+
}))
912
return config
1013
}
1114
}

apps/next-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"prepare": "tw-patch"
1111
},
1212
"dependencies": {
13-
"@types/node": "18.16.1",
13+
"@types/node": "18.16.2",
1414
"@types/react": "18.2.0",
1515
"@types/react-dom": "18.2.1",
1616
"autoprefixer": "10.4.14",

apps/nuxt-app/app.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
1313
target="_blank" rel="noopener noreferrer">
1414
By
15-
<img src="./assets/vercel.svg" alt="Vercel Logo" class="dark:invert" priority />
15+
<img width="200" src="./assets/vercel.svg" alt="Vercel Logo" class="dark:invert" priority />
1616
</a>
1717
</div>
1818
</div>
1919

2020
<div
2121
class="relative flex place-items-center before:absolute before:h-[300px] before:w-[480px] before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-[240px] after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700/10 after:dark:from-sky-900 after:dark:via-[#0141ff]/40 before:lg:h-[360px]">
22-
<img class="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert" src="./assets/next.svg" alt="Next.js Logo"
22+
<img class="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert" width="300" src="./assets/next.svg" alt="Next.js Logo"
2323
priority />
2424
</div>
2525

apps/nuxt-app/nuxt.config.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,13 @@ export default defineNuxtConfig({
88
autoprefixer: {}
99
}
1010
},
11-
modules: [nuxtPlugin]
11+
modules: [
12+
[
13+
nuxtPlugin,
14+
{
15+
classSetOutput: true,
16+
classMapOutput: true
17+
}
18+
]
19+
]
1220
})

apps/nuxt-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"prepare": "tw-patch"
1111
},
1212
"devDependencies": {
13-
"@types/node": "^18",
13+
"@types/node": "^18.16.2",
1414
"autoprefixer": "^10.4.14",
15-
"nuxt": "^3.4.2",
15+
"nuxt": "^3.4.3",
1616
"postcss": "^8.4.23",
1717
"tailwindcss": "^3.3.2",
1818
"tailwindcss-patch": "workspace:*",

apps/solid-app/vite.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ import { defineConfig } from 'vite'
22
import solidPlugin from 'vite-plugin-solid'
33
import { vitePlugin as utwm } from 'unplugin-tailwindcss-mangle'
44
export default defineConfig({
5-
plugins: [solidPlugin(), utwm()],
5+
plugins: [
6+
solidPlugin(),
7+
utwm({
8+
classSetOutput: true,
9+
classMapOutput: true
10+
})
11+
],
612
server: {
713
port: 3000
814
},

apps/vite-lit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"scripts": {
1616
"dev": "vite",
17-
"build": "tsc && vite build",
17+
"_build": "tsc && vite build",
1818
"prepare": "tw-patch"
1919
},
2020
"dependencies": {

apps/vite-react/vite.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@ import react from '@vitejs/plugin-react'
33
import { vitePlugin as utwm } from 'unplugin-tailwindcss-mangle'
44
// https://vitejs.dev/config/
55
export default defineConfig({
6-
plugins: [react(), utwm()]
6+
plugins: [
7+
react(),
8+
utwm({
9+
classSetOutput: true,
10+
classMapOutput: true
11+
})
12+
]
713
})

apps/vite-svelte/vite.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
33
import { vitePlugin as utwm } from 'unplugin-tailwindcss-mangle'
44
// https://vitejs.dev/config/
55
export default defineConfig({
6-
plugins: [svelte(), utwm()]
6+
plugins: [
7+
svelte(),
8+
utwm({
9+
classSetOutput: true,
10+
classMapOutput: true
11+
})
12+
]
713
})

0 commit comments

Comments
 (0)