Skip to content

Commit dd82bcb

Browse files
authored
Merge pull request #3 from sonofmagic/dev
Release: unplugin-tailwindcss-mangle 0.0.3
2 parents c96d5ab + cf27e85 commit dd82bcb

Some content is hidden

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

41 files changed

+5602
-319
lines changed

apps/next-app/next.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
const utwm = require('unplugin-tailwindcss-mangle')
1+
const { webpackPlugin: utwm } = require('unplugin-tailwindcss-mangle')
22
// import utwm from 'unplugin-tailwindcss-mangle'
33

44
/** @type {import('next').NextConfig} */
55
const nextConfig = {
66
reactStrictMode: true,
77
webpack: (config) => {
8-
config.plugins.push(utwm.webpack())
8+
config.plugins.push(utwm())
99
return config
1010
}
1111
}

apps/vite-react/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from 'vite'
22
import react from '@vitejs/plugin-react'
3-
import utwm from 'unplugin-tailwindcss-mangle'
3+
import { vitePlugin as utwm } from 'unplugin-tailwindcss-mangle'
44
// https://vitejs.dev/config/
55
export default defineConfig({
6-
plugins: [react(), utwm.vite()]
6+
plugins: [react(), utwm()]
77
})

apps/vite-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"build": "vue-tsc && vite build",
8+
"build": "vite build",
99
"preview": "vite preview",
1010
"prepare": "tw-patch"
1111
},

apps/vite-vue/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from 'vite'
22
import vue from '@vitejs/plugin-vue'
3-
import utwm from 'unplugin-tailwindcss-mangle'
3+
import { vitePlugin as utwm } from 'unplugin-tailwindcss-mangle'
44
// https://vitejs.dev/config/
55
export default defineConfig({
6-
plugins: [vue(), utwm.vite()]
6+
plugins: [vue(), utwm()]
77
})

apps/webpack5-vue3/.browserslistrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
> 1%
2+
last 2 versions
3+
not dead
4+
not ie 11

apps/webpack5-vue3/.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true

apps/webpack5-vue3/.eslintrc.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
extends: [
7+
'plugin:vue/vue3-essential',
8+
'@vue/standard',
9+
'@vue/typescript/recommended'
10+
],
11+
parserOptions: {
12+
ecmaVersion: 2020
13+
},
14+
rules: {
15+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
16+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
17+
}
18+
}

apps/webpack5-vue3/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

apps/webpack5-vue3/babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

apps/webpack5-vue3/package.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "webpack5-vue3",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"lint": "vue-cli-service lint",
9+
"prepare": "tw-patch"
10+
},
11+
"dependencies": {
12+
"core-js": "^3.8.3",
13+
"vue": "^3.2.13",
14+
"vue-router": "^4.0.3"
15+
},
16+
"devDependencies": {
17+
"@typescript-eslint/eslint-plugin": "^5.4.0",
18+
"@typescript-eslint/parser": "^5.4.0",
19+
"@vue/cli-plugin-babel": "~5.0.0",
20+
"@vue/cli-plugin-eslint": "~5.0.0",
21+
"@vue/cli-plugin-router": "~5.0.0",
22+
"@vue/cli-plugin-typescript": "~5.0.0",
23+
"@vue/cli-service": "~5.0.0",
24+
"@vue/eslint-config-standard": "^8.0.1",
25+
"@vue/eslint-config-typescript": "^11.0.2",
26+
"autoprefixer": "^10.4.14",
27+
"eslint": "^8.38.0",
28+
"eslint-plugin-import": "^2.27.5",
29+
"eslint-plugin-node": "^11.1.0",
30+
"eslint-plugin-promise": "^6.1.1",
31+
"eslint-plugin-vue": "^9.11.0",
32+
"postcss": "^8.4.22",
33+
"sass": "^1.32.7",
34+
"sass-loader": "^13.2.2",
35+
"tailwindcss": "^3.3.1",
36+
"tailwindcss-patch": "workspace:*",
37+
"typescript": "~5.0.4",
38+
"unplugin-tailwindcss-mangle": "workspace:*"
39+
}
40+
}

0 commit comments

Comments
 (0)