Skip to content

Commit

Permalink
Add support for flexbox and grid options and add documentation (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
lendormi authored and sindresorhus committed Mar 16, 2017
1 parent 47f1b47 commit 6e2ee96
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Autoprefixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def prefix(self, data):
return node_bridge(data, BIN_PATH, [json.dumps({
'browsers': get_setting(self.view, 'browsers'),
'cascade': get_setting(self.view, 'cascade'),
'remove': get_setting(self.view, 'remove'),
'flexbox': get_setting(self.view, 'flexbox'),
'grid': get_setting(self.view, 'grid'),
'is_css': is_css(self.view)
})])
except Exception as e:
Expand Down
11 changes: 11 additions & 0 deletions Autoprefixer.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
{
// @see Browserslist docs https://github.com/ai/browserslist#queries
"browsers": ["defaults"],
// Autoprefixer use Visual Cascade, if CSS is uncompressed
// boolean
"cascade": true,
// Autoprefixer [remove outdated] prefixes
// boolean
"remove": true,
// Autoprefixer add prefixes for flexbox properties
// boolean|string (no-2009)
"flexbox": true,
// Autoprefixer add IE prefixes for Grid Layout properties/
// boolean
"grid": true,
"prefixOnSave": false
}

0 comments on commit 6e2ee96

Please sign in to comment.