mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Remove code obsoleted by upgrading PostCSS
This commit is contained in:
parent
f01d79f76b
commit
060d23439d
@ -23,31 +23,6 @@ export default function(getConfig) {
|
||||
substituteResponsiveAtRules(config),
|
||||
substituteScreenAtRules(config),
|
||||
substituteClassApplyAtRules(config, processedPlugins.utilities),
|
||||
|
||||
// This quick plugin is necessary to avoid a serious performance
|
||||
// hit due to nodes created by postcss-js having an empty `raws`
|
||||
// value, and PostCSS not providing a default `raws.semicolon`
|
||||
// value. This turns determining what value to use there into an
|
||||
// O(n) operation instead of an O(1) operation.
|
||||
//
|
||||
// The latest version of PostCSS 7.x has this patched internally,
|
||||
// but patching from userland until we upgrade from v6 to v7.
|
||||
function(root) {
|
||||
root.rawCache = {
|
||||
colon: ': ',
|
||||
indent: ' ',
|
||||
beforeDecl: '\n',
|
||||
beforeRule: '\n',
|
||||
beforeOpen: ' ',
|
||||
beforeClose: '\n',
|
||||
beforeComment: '\n',
|
||||
after: '\n',
|
||||
emptyBody: '',
|
||||
commentLeft: ' ',
|
||||
commentRight: ' ',
|
||||
semicolon: false,
|
||||
}
|
||||
},
|
||||
]).process(css, { from: _.get(css, 'source.input.file') })
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user