Skip to content

Commit

Permalink
Merge branch 'task/GH-171-support-css-that-is-forwards-compatible' in…
Browse files Browse the repository at this point in the history
…to milestone/10-frontera-redesign-phase-0
  • Loading branch information
wesleyboar committed Mar 30, 2021
2 parents cade0e8 + ec0e194 commit f5e4835
Show file tree
Hide file tree
Showing 6 changed files with 1,587 additions and 81 deletions.
15 changes: 14 additions & 1 deletion conf/css/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,21 @@ module.exports = {
filter: path => ! RegExp('^/static').test(path)
}),
require('postcss-extend')(),
require('postcss-preset-env')({
// SEE: https://github.com/csstools/postcss-preset-env#features
stage: false,
// SEE: https://github.com/csstools/postcss-preset-env/blob/master/src/lib/plugins-by-id.js#L35
features: {
'custom-media-queries': true
}
}),
require('cssnano')({
preset: 'default'
preset: ['default', {
// Disabled to avoid sweeping bad CSS under the rug
// NOTE: Also fixes comparability in tests by retaining expectation code
discardDuplicates: { exclude: true },
mergeRules: { exclude: true },
}]
})
]
}
Loading

0 comments on commit f5e4835

Please sign in to comment.