weapp-tailwindcss 3.2.0-alpha.0 → 3.2.0-alpha.2
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/dist/babel/index.d.ts +15 -2
- package/dist/bundlers/gulp/index.d.ts +4 -4
- package/dist/cli.js +13 -2
- package/dist/cli.mjs +13 -2
- package/dist/core.js +2 -2
- package/dist/core.mjs +2 -2
- package/dist/gulp.js +3 -3
- package/dist/gulp.mjs +3 -3
- package/dist/{index-Cc9Keh2y.mjs → index-BhrpFuVY.mjs} +7 -11
- package/dist/{index-68y_DK7v.mjs → index-Bv5O41ly.mjs} +1 -1
- package/dist/{index-DceUHJsx.js → index-CJ2avZMo.js} +1 -1
- package/dist/{index-BeceVy3q.js → index-DyHMB5jI.js} +7 -11
- package/dist/index.js +7 -7
- package/dist/index.mjs +6 -6
- package/dist/{options-D44x0dJn.mjs → options-B4Q7Koe2.mjs} +8 -2
- package/dist/{options-CsgtOq1O.js → options-CJjfTssp.js} +14 -8
- package/dist/{v5-BvCYBYO9.js → v5-CbEl4DHT.js} +1 -1
- package/dist/{v5-F0XOH7NH.mjs → v5-Dxj0DyQd.mjs} +1 -1
- package/dist/vite.js +3 -3
- package/dist/vite.mjs +3 -3
- package/dist/webpack.js +3 -3
- package/dist/webpack.mjs +3 -3
- package/dist/webpack4.js +2 -2
- package/dist/webpack4.mjs +2 -2
- package/package.json +45 -44
- package/CHANGELOG.md +0 -619
- package/README_en.md +0 -139
- package/benchmark/.vscode/extensions.json +0 -3
package/README_en.md
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<p align="center">
|
|
3
|
-
|
|
4
|
-
<a href="https://weapp-tw.icebreaker.top">
|
|
5
|
-
|
|
6
|
-
<img src="./assets/logo.png" alt="weapp-tailwindcss-logo" width="128">
|
|
7
|
-
</a>
|
|
8
|
-
|
|
9
|
-
<br>
|
|
10
|
-
|
|
11
|
-
<h1 align="center">weapp-tailwindcss</h1>
|
|
12
|
-
|
|
13
|
-
</p>
|
|
14
|
-
|
|
15
|
-
> [简体中文(zh-cn)](./README.md) | English
|
|
16
|
-
|
|
17
|
-

|
|
18
|
-

|
|
19
|
-

|
|
20
|
-

|
|
21
|
-
[](https://github.com/sonofmagic/weapp-tailwindcss/actions/workflows/test.yml)
|
|
22
|
-
[](https://codecov.io/gh/sonofmagic/weapp-tailwindcss)
|
|
23
|
-
|
|
24
|
-
> `weapp` + `tailwindcss` all-round solution.
|
|
25
|
-
|
|
26
|
-
\[[Docs deployed in China](https://weapp-tw.icebreaker.top)\] \| \[[Github Page](https://sonofmagic.github.io/weapp-tailwindcss/)\] \| \[[1.x Docs]('./v1.md')\]
|
|
27
|
-
|
|
28
|
-
- [Features](#features)
|
|
29
|
-
- [Plugin Introduction](#plugin-introduction)
|
|
30
|
-
- [Installation and usage](#installation-and-usage)
|
|
31
|
-
- [Migrating from v1 to v2](#migrating-from-v1-to-v2)
|
|
32
|
-
- [Configuration reference](#configuration-reference)
|
|
33
|
-
- [Tailwindcss arbitrary values](#tailwindcss-arbitrary-values)
|
|
34
|
-
- [FAQ](#faq)
|
|
35
|
-
- [Changelog](#changelog)
|
|
36
|
-
- [Related projects](#related-projects)
|
|
37
|
-
- [CLI tools](#cli-tools)
|
|
38
|
-
- [template](#template)
|
|
39
|
-
- [how to choose?](#how-to-choose)
|
|
40
|
-
- [Use `uni-app cli` to build `vscode` development](#use-uni-app-cli-to-build-vscode-development)
|
|
41
|
-
- [Build and develop with `hbuilderx`](#build-and-develop-with-hbuilderx)
|
|
42
|
-
- [Use `tarojs` to build `vscode` development](#use-tarojs-to-build-vscode-development)
|
|
43
|
-
- [Native applet development template](#native-applet-development-template)
|
|
44
|
-
- [tailwindcss plugin](#tailwindcss-plugin)
|
|
45
|
-
- [tailwindcss preset](#tailwindcss-preset)
|
|
46
|
-
- [Bugs \& Issues](#bugs--issues)
|
|
47
|
-
- [License](#license)
|
|
48
|
-
|
|
49
|
-
## Features
|
|
50
|
-
|
|
51
|
-
| not only `webpack` | Mainstream framework and native development support |
|
|
52
|
-
| --------------------------------------------------- | --------------------------------------------------- |
|
|
53
|
-
|  |  |
|
|
54
|
-
|
|
55
|
-
This plugin allows you to use tailwindcss in `weapp`. At the same time, it provides the functions of tailwindcss class name escape and mangle.
|
|
56
|
-
|
|
57
|
-
> What's [`weapp`](https://mp.weixin.qq.com/cgi-bin/wx) ?
|
|
58
|
-
> it is a program running in [`WeChat`](https://en.wikipedia.org/wiki/WeChat),[Alipay](https://en.wikipedia.org/wiki/Alipay) or other third-party applications.
|
|
59
|
-
> `weapp` is a new open capability. Developers can quickly develop a small program. Mini Programs can be easily obtained and disseminated within WeChat. At the same time, have an excellent user experience.
|
|
60
|
-
|
|
61
|
-
The core plugin supports `webpack`/`vite`/`gulp` for building, covering almost all mainstream development frameworks for weapp.
|
|
62
|
-
|
|
63
|
-
These plugins can automatically identify and accurately handle all `tailwindcss` tool classes to adapt to the applet environment. At the same time, these plugins also can compress and confuse the tool class names generated by `tailwindcss`. This ability shortens the length of `css` selectors, reduces the size of generated styles, and makes class names unreadable in production.
|
|
64
|
-
|
|
65
|
-
### Plugin Introduction
|
|
66
|
-
|
|
67
|
-
The `UnifiedWebpackPluginV5` exported from `weapp-tailwindcss/webpack` is a core plugin that can be used by all frameworks that use `webpack` for packaging.
|
|
68
|
-
|
|
69
|
-
The `UnifiedViteWeappTailwindcssPlugin` exported from `weapp-tailwindcss/vite` is a dedicated plugin for `vite`, and the configuration items and usage are consistent with the `webpack` plugin.
|
|
70
|
-
|
|
71
|
-
And our `gulp` plugin method, can be exported from `weapp-tailwindcss/gulp`.
|
|
72
|
-
|
|
73
|
-
Currently, these plugins support the latest version of the `tailwindcss v3.x.x` version and `webpack5`, `vite`, and `gulp`.
|
|
74
|
-
|
|
75
|
-
> If you are still using the `tailwindcss@2` version, then you should use the `1.x` version of this plugin. Also, make sure your `nodejs` version `>=16`. At present, the long-term maintenance version (`even-numbered version`) below `16` has ended its life cycle. It is recommended to install the `LTS` version of `nodejs`, See [nodejs/release](<https://github.com/> nodejs/release)
|
|
76
|
-
|
|
77
|
-
## [Installation and usage](https://weapp-tw.icebreaker.top/docs/quick-start/install)
|
|
78
|
-
|
|
79
|
-
## [Migrating from v1 to v2](https://weapp-tw.icebreaker.top/docs/migrations/v1)
|
|
80
|
-
|
|
81
|
-
## [Configuration reference](https://weapp-tw.icebreaker.top/docs/api/interfaces/UserDefinedOptions)
|
|
82
|
-
|
|
83
|
-
## [Tailwindcss arbitrary values](https://tailwindcss.com/docs/adding-custom-styles#using-arbitrary-values)
|
|
84
|
-
|
|
85
|
-
## [FAQ](https://weapp-tw.icebreaker.top/docs/issues/)
|
|
86
|
-
|
|
87
|
-
## [Changelog](./CHANGELOG.md)
|
|
88
|
-
|
|
89
|
-
## Related projects
|
|
90
|
-
|
|
91
|
-
### CLI tools
|
|
92
|
-
|
|
93
|
-
[weapp-ide-cli](https://github.com/sonofmagic/utils/tree/main/packages/weapp-ide-cli): A WeChat developer cli tool. Quickly and conveniently starts the ide directly for login, development, preview, upload code, and other functions.
|
|
94
|
-
|
|
95
|
-
### template
|
|
96
|
-
|
|
97
|
-
#### how to choose?
|
|
98
|
-
|
|
99
|
-
If you just develop a combination of `weapp` + `h5`, then using `vscode` template is enough
|
|
100
|
-
|
|
101
|
-
If the key platform of your project is `app`, it is recommended to use the `hbuilderx` template, because `hbuilderx` comes with a toolchain for `app` construction and debugging, which can better support your development.
|
|
102
|
-
|
|
103
|
-
#### Use `uni-app cli` to build `vscode` development
|
|
104
|
-
|
|
105
|
-
[uni-app-vite-vue3-tailwind-vscode-template](https://github.com/sonofmagic/uni-app-vite-vue3-tailwind-vscode-template)
|
|
106
|
-
|
|
107
|
-
[uni-app-vue2-tailwind-vscode-template](https://github.com/sonofmagic/uni-app-vue2-tailwind-vscode-template)
|
|
108
|
-
|
|
109
|
-
#### Build and develop with `hbuilderx`
|
|
110
|
-
|
|
111
|
-
[uni-app-vue3-tailwind-hbuilder-template](https://github.com/sonofmagic/uni-app-vue3-tailwind-hbuilder-template)
|
|
112
|
-
|
|
113
|
-
#### Use `tarojs` to build `vscode` development
|
|
114
|
-
|
|
115
|
-
[taro-react-tailwind-vscode-template](https://github.com/sonofmagic/taro-react-tailwind-vscode-template)
|
|
116
|
-
|
|
117
|
-
#### Native applet development template
|
|
118
|
-
|
|
119
|
-
[weapp-tailwindcss-gulp-template(gulp打包)](https://github.com/sonofmagic/weapp-tailwindcss/tree/main/demo/gulp-app)
|
|
120
|
-
|
|
121
|
-
[weapp-native-mina-tailwindcss-template(webpack打包)](https://github.com/sonofmagic/weapp-native-mina-tailwindcss-template)
|
|
122
|
-
|
|
123
|
-
### tailwindcss plugin
|
|
124
|
-
|
|
125
|
-
[weapp-tailwindcss-children](https://github.com/sonofmagic/weapp-tailwindcss-children)
|
|
126
|
-
|
|
127
|
-
### tailwindcss preset
|
|
128
|
-
|
|
129
|
-
[tailwindcss-miniprogram-preset](https://github.com/sonofmagic/tailwindcss-miniprogram-preset)
|
|
130
|
-
|
|
131
|
-
## Bugs & Issues
|
|
132
|
-
|
|
133
|
-
This plugin is currently under rapid development, if you encounter a `Bug` or want to raise an `Issue`, Welcome to submit [here](https://github.com/sonofmagic/weapp-tailwindcss/issues)
|
|
134
|
-
|
|
135
|
-
## License
|
|
136
|
-
|
|
137
|
-
[MIT](https://opensource.org/licenses/MIT)
|
|
138
|
-
|
|
139
|
-
Copyright (c) 2022-present, [ice breaker](https://github.com/sonofmagic)
|