Merge branch 'master' into 0.3
This commit is contained in:
commit
45c1c4826f
15 changed files with 99 additions and 81 deletions
|
|
@ -2,12 +2,10 @@ import _ from 'lodash'
|
|||
import functions from 'postcss-functions'
|
||||
|
||||
export default function(config) {
|
||||
const options = config()
|
||||
|
||||
return functions({
|
||||
functions: {
|
||||
config: (path, defaultValue) => {
|
||||
return _.get(options, _.trim(path, `'"`), defaultValue)
|
||||
return _.get(config(), _.trim(path, `'"`), defaultValue)
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ function findMixin(css, mixin, onError) {
|
|||
|
||||
if (_.isEmpty(matches)) {
|
||||
// prettier-ignore
|
||||
onError(`\`@apply\` cannot be used with ${mixin} because ${mixin} either does not exist, or it's actual definition includes a pseudo-class like :hover, :active, etc.`)
|
||||
onError(`\`@apply\` cannot be used with \`${mixin}\` because \`${mixin}\` either cannot be found, or it's actual definition includes a pseudo-selector like :hover, :active, etc. If you're sure that \`${mixin}\` exists, make sure that any \`@import\` statements are being properly processed *before* Tailwind CSS sees your CSS, as \`@apply\` can only be used for classes in the same CSS tree.`)
|
||||
}
|
||||
|
||||
if (matches.length > 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue