@empjs/plugin-tailwindcss 1.2.6 → 1.2.7
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/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var h=Object.create;var p=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var v=(e,s)=>{for(var r in s)p(e,r,{get:s[r],enumerable:!0})},u=(e,s,r,t)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of b(s))!x.call(e,i)&&i!==r&&p(e,i,{get:()=>s[i],enumerable:!(t=w(s,i))||t.enumerable});return e};var l=(e,s,r)=>(r=e!=null?h(y(e)):{},u(s||!e||!e.__esModule?p(r,"default",{value:e,enumerable:!0}):r,e)),O=e=>u(p({},"__esModule",{value:!0}),e);var q={};v(q,{default:()=>j});module.exports=O(q);var m=l(require("autoprefixer"),1),a=l(require("path"),1),j=(e,s,r,t)=>({name:"@empjs/plugin-tailwindcss",async rsConfig(i){let{chain:f}=i,d=require.resolve("tailwindcss/package.json"),c=a.default.dirname(d),g=a.default.join(c,"index.css"),o=[require("postcss-import")({resolve:n=>n==="tailwindcss"?g:n.startsWith("tailwindcss/")?a.default.join(c,n.replace("tailwindcss/","")):n}),[require.resolve("@tailwindcss/postcss"),{}]];i.empConfig.build.polyfill.browserslist&&i.empConfig.build.polyfill.browserslist.length>0&&o.push(["postcss-preset-env",{browsers:i.empConfig.build.polyfill.browserslist,stage:1,features:r}]),e?.pxToRemOptions&&o.push(["postcss-pxtorem",{rootValue:100,unitPrecision:3,propList:["*"],selectorBlackList:[],replace:!0,mediaQuery:!0,minPixelValue:0,...e.pxToRemOptions}]),o.push((0,m.default)(s)),t&&t.length>0&&o.push(...t),f.module.rule(i.chainName.rule.css).set("type","css").use("postcss").loader(require.resolve("postcss-loader")).options({postcssOptions:{plugins:o}})}});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GlobalStore } from '@empjs/cli';
|
|
2
2
|
import autoprefixer from 'autoprefixer';
|
|
3
|
-
import { Input } from 'postcss';
|
|
3
|
+
import { Input, AcceptedPlugin } from 'postcss';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* postcss-pxtorem 配置选项
|
|
@@ -20,7 +20,7 @@ type TailwindcssOptions = {
|
|
|
20
20
|
pxToRemOptions?: PxToRemOptions;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
declare const _default: (tailwindcssOptions?: TailwindcssOptions, autoprefixerOptions?: autoprefixer.Options, presetEnvFeature?: Record<string, boolean
|
|
23
|
+
declare const _default: (tailwindcssOptions?: TailwindcssOptions, autoprefixerOptions?: autoprefixer.Options, presetEnvFeature?: Record<string, boolean>, customPostcssPlugins?: AcceptedPlugin[]) => {
|
|
24
24
|
name: string;
|
|
25
25
|
rsConfig(store: GlobalStore): Promise<void>;
|
|
26
26
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GlobalStore } from '@empjs/cli';
|
|
2
2
|
import autoprefixer from 'autoprefixer';
|
|
3
|
-
import { Input } from 'postcss';
|
|
3
|
+
import { Input, AcceptedPlugin } from 'postcss';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* postcss-pxtorem 配置选项
|
|
@@ -20,7 +20,7 @@ type TailwindcssOptions = {
|
|
|
20
20
|
pxToRemOptions?: PxToRemOptions;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
declare const _default: (tailwindcssOptions?: TailwindcssOptions, autoprefixerOptions?: autoprefixer.Options, presetEnvFeature?: Record<string, boolean
|
|
23
|
+
declare const _default: (tailwindcssOptions?: TailwindcssOptions, autoprefixerOptions?: autoprefixer.Options, presetEnvFeature?: Record<string, boolean>, customPostcssPlugins?: AcceptedPlugin[]) => {
|
|
24
24
|
name: string;
|
|
25
25
|
rsConfig(store: GlobalStore): Promise<void>;
|
|
26
26
|
};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var r=(s=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(s,{get:(o,l)=>(typeof require<"u"?require:o)[l]}):s)(function(s){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+s+'" is not supported')});import f from"autoprefixer";import p from"path";var y=(s,o,l,n)=>({name:"@empjs/plugin-tailwindcss",async rsConfig(e){let{chain:c}=e,u=r.resolve("tailwindcss/package.json"),a=p.dirname(u),m=p.join(a,"index.css"),i=[r("postcss-import")({resolve:t=>t==="tailwindcss"?m:t.startsWith("tailwindcss/")?p.join(a,t.replace("tailwindcss/","")):t}),[r.resolve("@tailwindcss/postcss"),{}]];e.empConfig.build.polyfill.browserslist&&e.empConfig.build.polyfill.browserslist.length>0&&i.push(["postcss-preset-env",{browsers:e.empConfig.build.polyfill.browserslist,stage:1,features:l}]),s?.pxToRemOptions&&i.push(["postcss-pxtorem",{rootValue:100,unitPrecision:3,propList:["*"],selectorBlackList:[],replace:!0,mediaQuery:!0,minPixelValue:0,...s.pxToRemOptions}]),i.push(f(o)),n&&n.length>0&&i.push(...n),c.module.rule(e.chainName.rule.css).set("type","css").use("postcss").loader(r.resolve("postcss-loader")).options({postcssOptions:{plugins:i}})}});export{y as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empjs/plugin-tailwindcss",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "base tailwind 4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"author": "Ken",
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@empjs/cli": "3.
|
|
55
|
+
"@empjs/cli": "3.11.3"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"autoprefixer": "10.4.22",
|