File tree 5 files changed +23
-3
lines changed
plugins/postcss-env-function
5 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,12 @@ module.exports = {
77
77
} ,
78
78
expect : 'basic.import.expect.css' ,
79
79
result : 'basic.import.result.css'
80
+ } ,
81
+ 'basic:import-is-empty' : {
82
+ message : 'supports { importFrom: {} } usage' ,
83
+ options : {
84
+ importFrom : { }
85
+ }
80
86
}
81
87
}
82
88
} ;
Original file line number Diff line number Diff line change 1
1
# Changes to PostCSS Environment Variables
2
2
3
+ ### 2.0.2 (September 20, 2018)
4
+
5
+ - Updated: Do not break on an empty importFrom object
6
+
3
7
### 2.0.1 (September 18, 2018)
4
8
5
9
- Updated: Support for PostCSS Values Parser 2
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export default function importEnvironmentVariablesFromSources(sources) {
59
59
const from = String ( opts . from || '' ) ;
60
60
61
61
// type of file being read from
62
- const type = ( opts . type || path . extname ( opts . from ) . slice ( 1 ) ) . toLowerCase ( ) ;
62
+ const type = ( opts . type || path . extname ( from ) . slice ( 1 ) ) . toLowerCase ( ) ;
63
63
64
64
return { type, from } ;
65
65
} ) . reduce ( async ( environmentVariables , source ) => {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " postcss-env-function" ,
3
- "version" : " 2.0.1 " ,
3
+ "version" : " 2.0.2 " ,
4
4
"description" : " Use env() variables in CSS" ,
5
5
"author" : " Jonathan Neal <jonathantneal@hotmail.com>" ,
6
6
"license" : " CC0-1.0" ,
39
39
"eslint-config-dev" : " ^2.0.0" ,
40
40
"postcss-tape" : " ^2.2.0" ,
41
41
"pre-commit" : " ^1.2.2" ,
42
- "rollup" : " ^0.66.0 " ,
42
+ "rollup" : " ^0.66.1 " ,
43
43
"rollup-plugin-babel" : " ^4.0.3"
44
44
},
45
45
"eslintConfig" : {
Original file line number Diff line number Diff line change
1
+ body {
2
+ order : 1 ;
3
+ padding : env (--some-custom-padding );
4
+ }
5
+
6
+ @media (min-width : env (--another-custom-width )) {
7
+ body {
8
+ order : 2 ;
9
+ }
10
+ }
You can’t perform that action at this time.
0 commit comments