postcss-elm-tailwind
Advanced tools
Comparing version 0.9.0 to 0.10.0
@@ -17,4 +17,8 @@ const fs = require("fs"); | ||
// Transform CSS AST here | ||
root.walkRules(/^\./, rule => { | ||
rule.selectors.forEach(selector => processSelector(selector, opts)); | ||
root.walkRules(rule => { | ||
rule.selector | ||
.split(" ") | ||
.map(sel => sel.split(",")) | ||
.reduce((arr, v) => (arr.push(...v), arr), []) | ||
.forEach(selector => processSelector(selector, opts)); | ||
}); | ||
@@ -21,0 +25,0 @@ |
{ | ||
"name": "postcss-elm-tailwind", | ||
"main": "./index.js", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "PostCSS plugin Tailwind classes for Elm", | ||
@@ -25,4 +25,4 @@ "keywords": [ | ||
"elm-format": "0.8.3", | ||
"mocha": "^6.2.2", | ||
"postcss-cli": "^6.1.3", | ||
"mocha": "^7.2.0", | ||
"postcss-cli": "^7.1.1", | ||
"tailwindcss": "^1.1.2" | ||
@@ -29,0 +29,0 @@ }, |
@@ -74,3 +74,3 @@ # postcss-elm-tailwind | ||
elmFile: "src/Tailwind.elm", // change where the generated Elm module is saved | ||
elmModule: "Tailwind", // this must match the file name or Elm will complain | ||
elmModuleName: "Tailwind", // this must match the file name or Elm will complain | ||
nameStyle: "snake" // "snake" for snake case, "camel" for camel case | ||
@@ -96,3 +96,3 @@ }) | ||
elmFile: "src/Tailwind.elm", | ||
elmModule: "Tailwind", | ||
elmModuleName: "Tailwind", | ||
formats: { | ||
@@ -119,3 +119,3 @@ svg: { | ||
elmFile: "src/Tailwind.elm", | ||
elmModule: "Tailwind", | ||
elmModuleName: "Tailwind", | ||
formats: { | ||
@@ -137,2 +137,2 @@ string: { | ||
so that all the unused classes are removed from your production CSS. | ||
See how this is implemented in the [demo](https://github.com/monty5811/postcss-elm-tailwind/blob/master/demo/package.json#L20). | ||
See how this is implemented in the [demo](https://github.com/monty5811/postcss-elm-tailwind/blob/master/demo/package.json#L19). |
@@ -185,2 +185,6 @@ const h = require("../helpers"); | ||
}); | ||
// regression test for .bottom-0.5 | ||
it("handle '.bottom-0.5'", () => { | ||
assert.equal(h.toElmName(h.fixClass(".bottom-0\.5")), "bottom_0_dot_5"); | ||
}); | ||
}); | ||
@@ -187,0 +191,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19756
442