File tree Expand file tree Collapse file tree 5 files changed +18
-20
lines changed
Expand file tree Collapse file tree 5 files changed +18
-20
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11language : node_js
22node_js :
3- - " 5"
4- - " 4"
5- - " 0.12"
3+ - 4.5
Original file line number Diff line number Diff line change 1+ ## 2.0
2+ * Use PostCSS 6x
3+ * Use Node 4x syntax
4+
15## 1.0
26* Initial release
Original file line number Diff line number Diff line change 1- var postcss = require ( 'postcss' ) ;
1+ const postcss = require ( 'postcss' ) ;
22
3- module . exports = postcss . plugin ( 'postcss-replace-overflow-wrap' , function ( opts ) {
3+ module . exports = postcss . plugin ( 'postcss-replace-overflow-wrap' , ( opts ) => {
44 opts = opts || { } ;
5- var method = opts . method || 'replace' ;
5+ const method = opts . method || 'replace' ;
66
7- return function ( css , result ) { // eslint-disable-line no-unused-vars
8- css . walkDecls ( 'overflow-wrap' , function ( decl , i ) { // eslint-disable-line no-unused-vars
7+ return ( css ) => {
8+ css . walkDecls ( 'overflow-wrap' , ( decl ) => {
99 decl . cloneBefore ( { prop : 'word-wrap' } ) ;
1010 if ( method === 'replace' ) {
1111 decl . remove ( ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " postcss-replace-overflow-wrap" ,
3- "version" : " 1 .0.0" ,
3+ "version" : " 2 .0.0" ,
44 "description" : " PostCSS plugin to replace overflow-wrap with word-wrap or optionally retain both declarations." ,
55 "keywords" : [
66 " postcss" ,
1616 "url" : " https://github.com/MattDiMu/postcss-replace-overflow-wrap/issues"
1717 },
1818 "homepage" : " https://github.com/MattDiMu/postcss-replace-overflow-wrap" ,
19+ "files" : [
20+ " index.js"
21+ ],
1922 "dependencies" : {
20- "postcss" : " ^5 .0.16 "
23+ "postcss" : " ^6 .0.1 "
2124 },
2225 "devDependencies" : {
23- "ava" : " ^0.14.0 " ,
24- "eslint" : " ^2.1 .0" ,
25- "eslint-config-postcss" : " ^2.0.0 "
26+ "ava" : " ^0.19.1 " ,
27+ "eslint" : " ^3.19 .0" ,
28+ "eslint-config-postcss" : " ^2.0.2 "
2629 },
2730 "scripts" : {
2831 "test" : " ava && eslint *.js"
You can’t perform that action at this time.
0 commit comments