File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 3
3
*/
4
4
var reduceCSSCalc = require ( "reduce-css-calc" )
5
5
var helpers = require ( "postcss-message-helpers" )
6
+ var postcss = require ( "postcss" ) ;
6
7
7
8
/**
8
9
* PostCSS plugin to reduce calc() function calls.
9
10
*/
10
- module . exports = function plugin ( options ) {
11
+ module . exports = postcss . plugin ( "postcss-calc" , function ( options ) {
11
12
options = options || { }
12
13
var precision = options . precision
13
14
var preserve = options . preserve
@@ -34,4 +35,4 @@ module.exports = function plugin(options) {
34
35
} , decl . source )
35
36
} )
36
37
}
37
- }
38
+ } ) ;
Original file line number Diff line number Diff line change 5
5
"keywords" : [
6
6
" css" ,
7
7
" postcss" ,
8
- " postcss-plugins " ,
8
+ " postcss-plugin " ,
9
9
" calculation" ,
10
10
" calc"
11
11
],
22
22
],
23
23
"dependencies" : {
24
24
"postcss-message-helpers" : " ^2.0.0" ,
25
- "reduce-css-calc" : " ^1.2.0"
25
+ "reduce-css-calc" : " ^1.2.0" ,
26
+ "postcss" : " ^4.1.11"
26
27
},
27
28
"devDependencies" : {
28
29
"jscs" : " ^1.6.2" ,
29
30
"jshint" : " ^2.5.6" ,
30
- "postcss" : " ^4.0.2" ,
31
31
"postcss-custom-properties" : " ^3.0.0" ,
32
32
"tape" : " ^3.0.0"
33
33
},
You can’t perform that action at this time.
0 commit comments