@ecopages/postcss-processor 0.2.0-alpha.17 → 0.2.0-alpha.19

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 CHANGED
@@ -12,7 +12,7 @@ PostCSS processing pipeline for Ecopages. It provides a processor plugin that se
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- bunx jsr add @ecopages/postcss-processor
15
+ bun add @ecopages/postcss-processor
16
16
  ```
17
17
 
18
18
  ## Usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecopages/postcss-processor",
3
- "version": "0.2.0-alpha.17",
3
+ "version": "0.2.0-alpha.19",
4
4
  "description": "Postcss processor, transform string or postcss file to css",
5
5
  "keywords": [
6
6
  "postcss",
@@ -17,7 +17,7 @@
17
17
  "directory": "packages/processors/postcss-processor"
18
18
  },
19
19
  "dependencies": {
20
- "@ecopages/file-system": "0.2.0-alpha.17",
20
+ "@ecopages/file-system": "0.2.0-alpha.19",
21
21
  "@ecopages/logger": "^0.2.3",
22
22
  "autoprefixer": "^10.4.0",
23
23
  "browserslist": "^4.28.1",
@@ -27,7 +27,7 @@
27
27
  "postcss-nested": "^7.0.2"
28
28
  },
29
29
  "peerDependencies": {
30
- "@ecopages/core": "0.2.0-alpha.17",
30
+ "@ecopages/core": "0.2.0-alpha.19",
31
31
  "@tailwindcss/postcss": ">=4",
32
32
  "tailwindcss": ">=3"
33
33
  },
@@ -11,10 +11,13 @@ function tailwindV4Preset(options) {
11
11
  const autoprefixerOptions = browserslistConfig ? {} : {
12
12
  overrideBrowserslist: [">0.3%", "not ie 11", "not dead", "not op_mini all"]
13
13
  };
14
+ const createTailwindPlugin = () => {
15
+ return tailwindcss({ optimize: false });
16
+ };
14
17
  const pluginFactories = {
15
18
  "postcss-import": () => postcssImport(),
16
19
  "postcss-nested": () => postcssNested(),
17
- "@tailwindcss/postcss": () => tailwindcss({ optimize: false }),
20
+ "@tailwindcss/postcss": createTailwindPlugin,
18
21
  autoprefixer: () => autoprefixer(autoprefixerOptions),
19
22
  cssnano: () => cssnano()
20
23
  };