Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-elm-tailwind

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-elm-tailwind - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

8

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc