Disable plugins using corePlugins instead of variants
This commit is contained in:
parent
d98e97f3ec
commit
3fbd6b300a
2 changed files with 8 additions and 4 deletions
|
|
@ -791,8 +791,8 @@ module.exports = {
|
|||
minHeight: ['responsive'],
|
||||
minWidth: ['responsive'],
|
||||
negativeMargin: ['responsive'],
|
||||
objectFit: false,
|
||||
objectPosition: false,
|
||||
objectFit: [],
|
||||
objectPosition: [],
|
||||
opacity: ['responsive'],
|
||||
outline: ['focus'],
|
||||
overflow: ['responsive'],
|
||||
|
|
@ -816,6 +816,10 @@ module.exports = {
|
|||
width: ['responsive'],
|
||||
zIndex: ['responsive'],
|
||||
},
|
||||
corePlugins: {
|
||||
objectFit: false,
|
||||
objectPosition: false,
|
||||
},
|
||||
plugins: [
|
||||
require('./plugins/container')({
|
||||
// center: true,
|
||||
|
|
|
|||
|
|
@ -49,9 +49,9 @@ import whitespace from './plugins/whitespace'
|
|||
import width from './plugins/width'
|
||||
import zIndex from './plugins/zIndex'
|
||||
|
||||
function loadPlugins({ styles, variants }, plugins) {
|
||||
function loadPlugins({ styles, variants, corePlugins }, plugins) {
|
||||
return Object.keys(plugins)
|
||||
.filter(plugin => variants[plugin] !== false)
|
||||
.filter(plugin => corePlugins[plugin] !== false)
|
||||
.map(plugin => plugins[plugin]({
|
||||
values: styles[plugin],
|
||||
variants: variants[plugin],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue