lhl 6ff0e96ad3 8-4-1 | 1 år sedan | |
---|---|---|
.. | ||
dist | 1 år sedan | |
node_modules | 1 år sedan | |
LICENSE-MIT | 1 år sedan | |
README.md | 1 år sedan | |
package.json | 1 år sedan |
Normalize strings with PostCSS.
With npm do:
npm install postcss-normalize-string --save
p:after{ content: '\\'string\\' is intact' }
p:after{ content:"'string' is intact" }
See the PostCSS documentation for examples for your environment.
Type: string
Default: double
Sets what type of quote to prefer. Possible values are single
and double
.
var css = 'p:after{content:""}';
console.log(postcss(normalize({preferredQuote: 'single'})).process(css).css);
//=> p:after{content:''}
See CONTRIBUTORS.md.
MIT © Ben Briggs