Skip to content

Commit

Permalink
docs: improve some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
buschtoens committed Apr 3, 2019
1 parent e2e75ae commit 38e0428
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/clark-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ module.exports = class ClarkPlugin extends Plugin {

// https://github.com/csstools/postcss-preset-env
// Adds vendor prefixes based on Can I Use and polyfills new features
// Inspired by https://github.com/moxystudio/postcss-preset-moxy/blob/master/index.js
require('postcss-preset-env')({
browsers: this.browsers,

Expand All @@ -85,10 +86,10 @@ module.exports = class ClarkPlugin extends Plugin {

// Disable `preserve` so that the resulting CSS is consistent among all
// browsers, diminishing the probability of discovering bugs only when
// testing in older browsers
// testing in older browsers.
preserve: false,

// Enable features that we want, despite being proposals yet
// Explicitly enable features that we want, despite being proposals yet.
features: {
'custom-selectors': true,
'custom-properties': true,
Expand All @@ -98,8 +99,8 @@ module.exports = class ClarkPlugin extends Plugin {
},

autoprefixer: {
// We don't use prefixes unless they are really necessary, e.g. when
// dealing with quirks therefore, we disable removing them.
// We don't manually apply prefixes unless they are really necessary,
// e.g.when dealing with quirks, therefore we disable removing them.
remove: false
}
})
Expand Down

0 comments on commit 38e0428

Please sign in to comment.