@tailwindcss/postcss 0.0.0-development.2 → 0.0.0-development.3

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -16,6 +16,9 @@ function tailwindcss(opts = {}) {
16
16
  // We must handle `@tailwind` because not all tools preserve `@import`
17
17
  // at-rules and replace them with their content before we see them.
18
18
  tailwind: async (atRule, { result, postcss }) => {
19
+ if (atRule.params !== void 0 && atRule.params !== "") {
20
+ throw atRule.error(`@tailwind does not accept any parameters.`);
21
+ }
19
22
  let scanResult = _oxide.scanDir.call(void 0, { base, globs: true });
20
23
  let css = _tailwindcss.optimizeCss.call(void 0, _tailwindcss.preflight + _tailwindcss.compile.call(void 0, scanResult.candidates));
21
24
  for (let file of scanResult.files) {
@@ -35,9 +38,7 @@ function tailwindcss(opts = {}) {
35
38
  parent: result.opts.from
36
39
  });
37
40
  }
38
- console.time("Parsing CSS");
39
41
  let nodes = postcss.parse(css);
40
- console.timeEnd("Parsing CSS");
41
42
  atRule.replaceWith(nodes);
42
43
  }
43
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/postcss",
3
- "version": "0.0.0-development.2",
3
+ "version": "0.0.0-development.3",
4
4
  "scripts": {
5
5
  "build": "tsup-node ./src/index.ts --format cjs --dts --cjsInterop --splitting",
6
6
  "dev": "npm run build -- --watch"
@@ -15,7 +15,7 @@
15
15
  }
16
16
  },
17
17
  "dependencies": {
18
- "tailwindcss": "0.0.0-development.2",
19
- "@tailwindcss/oxide": "0.0.0-development.2"
18
+ "tailwindcss": "0.0.0-development.3",
19
+ "@tailwindcss/oxide": "0.0.0-development.3"
20
20
  }
21
21
  }