This repository was archived by the owner on Mar 22, 2019. It is now read-only.
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Examples:
54
54
55
55
function wring ( s , o ) {
56
56
csswring . wring ( s , o )
57
- . then ( function ( result ) {
57
+ . then ( ( result ) => {
58
58
if ( ! o . to ) {
59
59
process . stdout . write ( result . css ) ;
60
60
@@ -67,7 +67,7 @@ function wring(s, o) {
67
67
fs . writeFileSync ( `${ o . to } .map` , result . map ) ;
68
68
}
69
69
} )
70
- . catch ( function ( error ) {
70
+ . catch ( ( error ) => {
71
71
if ( error . name === "CssSyntaxError" ) {
72
72
console . error ( `${ error . file } :${ error . line } :${ error . column } : ${ error . reason } ` ) ;
73
73
process . exit ( 1 ) ;
Original file line number Diff line number Diff line change @@ -570,7 +570,7 @@ function wringAtRule(atRule) {
570
570
}
571
571
}
572
572
573
- module . exports = postcss . plugin ( pkg . name , function ( opts ) {
573
+ module . exports = postcss . plugin ( pkg . name , ( opts ) => {
574
574
if ( ! opts ) {
575
575
opts = { } ;
576
576
}
@@ -580,7 +580,7 @@ module.exports = postcss.plugin(pkg.name, function (opts) {
580
580
removeAllComments : false
581
581
} , opts ) ;
582
582
583
- return function ( css ) {
583
+ return ( css ) => {
584
584
css . raws . semicolon = false ;
585
585
css . raws . after = "" ;
586
586
css . walkComments ( wringComment . bind ( null , opts . removeAllComments ) ) ;
You can’t perform that action at this time.
0 commit comments