Skip to content

Commit 94db933

Browse files
committed
Add browser to cssnext settings to prevent possible warnings addresses #6
1 parent 9e1336d commit 94db933

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ var toConfig = exports.toConfig = (0, _compose2.default)(toExport, toString, obj
168168
var toES5Config = exports.toES5Config = (0, _compose2.default)(toES5Export, toString, objectify);
169169
var getPostcss = exports.getPostcss = function getPostcss(async) {
170170
return (0, _postcss2.default)().use((0, _postcssImport2.default)({ async: async })).use((0, _postcssCssnext2.default)({
171+
browsers: ['last 2 versions'],
171172
features: { customProperties: { preserve: 'computed' }, customMedia: { preserve: true } }
172173
}));
173174
};

src/lib/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export const getPostcss = async =>
147147
.use(atImport({ async }))
148148
.use(
149149
cssnext({
150+
browsers: ['last 2 versions'],
150151
features: { customProperties: { preserve: 'computed' }, customMedia: { preserve: true } }
151152
})
152153
)

0 commit comments

Comments
 (0)