@vituum/vite-plugin-postcss 1.0.0-alpha.2 → 1.0.0

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
@@ -20,12 +20,12 @@ export default {
20
20
  }
21
21
  ```
22
22
 
23
- * If you want to add more plugins, use add the via [css.postcss.plugins](https://vitejs.dev/config/shared-options.html#css-postcss).
24
- * If you want to use `postcss.config.cjs` add `css.postcss: process.cwd()`, PostCSS config and it's plugins will be used instead
23
+ * If you want to add more PostCSS plugins, add them via [css.postcss.plugins](https://vitejs.dev/config/shared-options.html#css-postcss).
24
+ * If you want to use `postcss.config.cjs` add `css.postcss: process.cwd()`, PostCSS config and it's plugins will be used instead.
25
25
 
26
- Read the [docs](https://vituum.dev/config/plugins-options.html#vituum-postcss) to learn more about plugin options
26
+ Read the [docs](https://vituum.dev/plugins/postcss.html) to learn more about plugin options
27
27
 
28
28
  ### Requirements
29
29
 
30
- - [Node.js LTS (18.x)](https://nodejs.org/en/download/)
30
+ - [Node.js LTS (16.x)](https://nodejs.org/en/download/)
31
31
  - [Vite](https://vitejs.dev/)
package/package.json CHANGED
@@ -1,23 +1,24 @@
1
1
  {
2
2
  "name": "@vituum/vite-plugin-postcss",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
+ "types": "types/index.d.ts",
6
7
  "scripts": {
7
8
  "tsc": "tsc",
8
9
  "eslint": "eslint '**/*.js' --fix"
9
10
  },
10
11
  "dependencies": {
11
- "vituum": "^1.0.0-alpha.16",
12
+ "vituum": "^1.0.0",
12
13
  "lodash": "^4.17.21",
13
14
  "autoprefixer": "^10.4.14",
14
15
  "postcss": "^8.4.24",
15
16
  "postcss-import": "^15.1.0",
16
17
  "postcss-nesting": "^11.3.0",
17
- "postcss-custom-media": "^9.1.4"
18
+ "postcss-custom-media": "^9.1.5"
18
19
  },
19
20
  "devDependencies": {
20
- "@types/node": "^20.3.1",
21
+ "@types/node": "^20.3.2",
21
22
  "vite": "^4.3.9",
22
23
  "eslint": "^8.43.0",
23
24
  "eslint-config-standard": "^17.1.0",
@@ -32,7 +33,7 @@
32
33
  "./types": "./types/*"
33
34
  },
34
35
  "engines": {
35
- "node": ">=18.0.0",
36
+ "node": ">=16.0.0",
36
37
  "npm": ">=9.0.0"
37
38
  },
38
39
  "repository": {
package/types/index.d.ts CHANGED
@@ -4,3 +4,5 @@ export interface PluginUserConfig {
4
4
  customMedia?: import('postcss-custom-media').pluginOptions
5
5
  autoprefixer?: import('autoprefixer').Options
6
6
  }
7
+
8
+ export default function plugin(options?: PluginUserConfig) : import('vite').Plugin