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 1
1
language : node_js
2
2
node_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
+
1
5
## 1.0
2
6
* Initial release
Original file line number Diff line number Diff line change 1
- var postcss = require ( 'postcss' ) ;
1
+ const postcss = require ( 'postcss' ) ;
2
2
3
- module . exports = postcss . plugin ( 'postcss-replace-overflow-wrap' , function ( opts ) {
3
+ module . exports = postcss . plugin ( 'postcss-replace-overflow-wrap' , ( opts ) => {
4
4
opts = opts || { } ;
5
- var method = opts . method || 'replace' ;
5
+ const method = opts . method || 'replace' ;
6
6
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 ) => {
9
9
decl . cloneBefore ( { prop : 'word-wrap' } ) ;
10
10
if ( method === 'replace' ) {
11
11
decl . remove ( ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " postcss-replace-overflow-wrap" ,
3
- "version" : " 1 .0.0" ,
3
+ "version" : " 2 .0.0" ,
4
4
"description" : " PostCSS plugin to replace overflow-wrap with word-wrap or optionally retain both declarations." ,
5
5
"keywords" : [
6
6
" postcss" ,
16
16
"url" : " https://github.com/MattDiMu/postcss-replace-overflow-wrap/issues"
17
17
},
18
18
"homepage" : " https://github.com/MattDiMu/postcss-replace-overflow-wrap" ,
19
+ "files" : [
20
+ " index.js"
21
+ ],
19
22
"dependencies" : {
20
- "postcss" : " ^5 .0.16 "
23
+ "postcss" : " ^6 .0.1 "
21
24
},
22
25
"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 "
26
29
},
27
30
"scripts" : {
28
31
"test" : " ava && eslint *.js"
You can’t perform that action at this time.
0 commit comments