postcss-replace-overflow-wrap
Advanced tools
+4
-0
@@ -0,1 +1,5 @@ | ||
| ## 3.0 | ||
| * Use PostCSS 7.x | ||
| * Bump various dependencies | ||
| ## 2.0 | ||
@@ -2,0 +6,0 @@ * Use PostCSS 6.x |
+13
-13
@@ -1,15 +0,15 @@ | ||
| const postcss = require('postcss'); | ||
| var postcss = require('postcss') | ||
| module.exports = postcss.plugin('postcss-replace-overflow-wrap', (opts) => { | ||
| opts = opts || {}; | ||
| const method = opts.method || 'replace'; | ||
| module.exports = postcss.plugin('postcss-replace-overflow-wrap', function (opts) { | ||
| opts = opts || {} | ||
| var method = opts.method || 'replace' | ||
| return (css) => { | ||
| css.walkDecls('overflow-wrap', (decl) => { | ||
| decl.cloneBefore({ prop: 'word-wrap' }); | ||
| if (method === 'replace') { | ||
| decl.remove(); | ||
| } | ||
| }); | ||
| }; | ||
| }); | ||
| return function (css) { | ||
| css.walkDecls('overflow-wrap', function (decl) { | ||
| decl.cloneBefore({ prop: 'word-wrap' }) | ||
| if (method === 'replace') { | ||
| decl.remove() | ||
| } | ||
| }) | ||
| } | ||
| }) |
+16
-6
| { | ||
| "name": "postcss-replace-overflow-wrap", | ||
| "version": "2.0.0", | ||
| "version": "3.0.0", | ||
| "description": "PostCSS plugin to replace overflow-wrap with word-wrap or optionally retain both declarations.", | ||
@@ -23,8 +23,17 @@ "keywords": [ | ||
| "dependencies": { | ||
| "postcss": "^6.0.1" | ||
| "postcss": "^7.0.2" | ||
| }, | ||
| "devDependencies": { | ||
| "ava": "^0.19.1", | ||
| "eslint": "^3.19.0", | ||
| "eslint-config-postcss": "^2.0.2" | ||
| "ava": "^0.25.0", | ||
| "eslint": "^5.3.0", | ||
| "eslint-config-logux": "^24.0.0", | ||
| "eslint-config-postcss": "^3.0.3", | ||
| "eslint-config-standard": "^11.0.0", | ||
| "eslint-plugin-es5": "^1.3.1", | ||
| "eslint-plugin-import": "^2.13.0", | ||
| "eslint-plugin-jest": "^21.20.1", | ||
| "eslint-plugin-node": "^7.0.1", | ||
| "eslint-plugin-promise": "^3.8.0", | ||
| "eslint-plugin-security": "^1.4.0", | ||
| "eslint-plugin-standard": "^3.1.0" | ||
| }, | ||
@@ -37,5 +46,6 @@ "scripts": { | ||
| "rules": { | ||
| "max-len": 0 | ||
| "max-len": 0, | ||
| "es5/no-modules": false | ||
| } | ||
| } | ||
| } |
+3
-1
@@ -1,2 +0,2 @@ | ||
| # PostCSS Replace Overflow Wrap [![Build Status][ci-img]][ci] | ||
| # PostCSS Replace Overflow Wrap [![CSS Standard Status][css-img]][css] [![Build Status][ci-img]][ci] | ||
@@ -6,2 +6,4 @@ [PostCSS] plugin to replace overflow-wrap with word-wrap. May optionally retain both declarations. | ||
| [PostCSS]: https://github.com/postcss/postcss | ||
| [css-img]: https://jonathantneal.github.io/css-db/badge/css-text-overflow-wrap-property.svg | ||
| [css]: https://jonathantneal.github.io/css-db/#css-text-overflow-wrap-property | ||
| [ci-img]: https://travis-ci.org/MattDiMu/postcss-replace-overflow-wrap.svg | ||
@@ -8,0 +10,0 @@ [ci]: https://travis-ci.org/MattDiMu/postcss-replace-overflow-wrap |
4220
14.99%49
4.26%12
300%+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated