@empjs/plugin-tailwindcss 1.0.0-beta.1

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/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # @empjs/plugin-tailwindcss
2
+ > base tailwindcss v4
3
+ ## 安装
4
+ ```
5
+ pnpm add @empjs/plugin-tailwindcss-D
6
+ pnpm add tailwindcss // 需要在落地项目安装、否则引入css会报错、暂时没找到解决方案
7
+ ```
8
+ ## 使用
9
+ ```js
10
+ import pluginTailwindcss from '@empjs/plugin-tailwindcss'
11
+ import {defineConfig} from '@empjs/cli'
12
+ export default defineConfig(({mode, env}) => {
13
+ return {
14
+ plugins: [pluginTailwindcss()],
15
+ }
16
+ })
17
+
18
+ ```
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";var p=Object.create;var l=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var a=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var m=(s,e)=>{for(var o in e)l(s,o,{get:e[o],enumerable:!0})},n=(s,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of c(e))!u.call(s,t)&&t!==o&&l(s,t,{get:()=>e[t],enumerable:!(i=r(e,t))||i.enumerable});return s};var d=(s,e,o)=>(o=s!=null?p(a(s)):{},n(e||!s||!s.__esModule?l(o,"default",{value:s,enumerable:!0}):o,s)),f=s=>n(l({},"__esModule",{value:!0}),s);var y={};m(y,{default:()=>g});module.exports=f(y);var g=()=>({name:"@empjs/plugin-tailwindcss",async rsConfig(s){let{chain:e}=s;e.module.rule(s.chainName.rule.css).set("type","css").use("postcss").loader(require.resolve("postcss-loader")).options({postcssOptions:{plugins:{"@tailwindcss/postcss":{}}}})}});
@@ -0,0 +1,8 @@
1
+ import { GlobalStore } from '@empjs/cli';
2
+
3
+ declare const _default: () => {
4
+ name: string;
5
+ rsConfig(store: GlobalStore): Promise<void>;
6
+ };
7
+
8
+ export { _default as default };
@@ -0,0 +1,8 @@
1
+ import { GlobalStore } from '@empjs/cli';
2
+
3
+ declare const _default: () => {
4
+ name: string;
5
+ rsConfig(store: GlobalStore): Promise<void>;
6
+ };
7
+
8
+ export { _default as default };
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ var o=(s=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(s,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):s)(function(s){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+s+'" is not supported')});var r=()=>({name:"@empjs/plugin-tailwindcss",async rsConfig(s){let{chain:e}=s;e.module.rule(s.chainName.rule.css).set("type","css").use("postcss").loader(o.resolve("postcss-loader")).options({postcssOptions:{plugins:{"@tailwindcss/postcss":{}}}})}});export{r as default};
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@empjs/plugin-tailwindcss",
3
+ "version": "1.0.0-beta.1",
4
+ "description": "base tailwind 4",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "maintainers": [
11
+ "xuhongbin",
12
+ "ckken"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/empjs/emp.git",
17
+ "directory": "packages/plugin-tailwind"
18
+ },
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "keywords": [
23
+ "vue",
24
+ "vue2"
25
+ ],
26
+ "main": "dist/index.js",
27
+ "types": "dist/index.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "import": {
31
+ "types": "./dist/index.d.ts",
32
+ "default": "./dist/index.js"
33
+ },
34
+ "require": {
35
+ "types": "./dist/index.d.cts",
36
+ "default": "./dist/index.cjs"
37
+ }
38
+ }
39
+ },
40
+ "engines": {
41
+ "node": ">=16.0.0"
42
+ },
43
+ "author": "Ken",
44
+ "devDependencies": {
45
+ "@types/node": "^22.13.11",
46
+ "tsup": "^8.1.0",
47
+ "@empjs/cli": "3.7.0-beta.0"
48
+ },
49
+ "dependencies": {
50
+ "@tailwindcss/postcss": "^4.0.15",
51
+ "postcss": "^8.5.3",
52
+ "postcss-loader": "^8.1.1",
53
+ "tailwindcss": "^4.0.15"
54
+ },
55
+ "scripts": {
56
+ "build": "tsup",
57
+ "dev": "tsup --watch"
58
+ }
59
+ }