Skip to content

Commit

Permalink
Warn users who still have target in their config file
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Oct 15, 2020
1 parent 6fa0677 commit 7e1a1e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/processTailwindFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { issueFlagNotices, flagEnabled } from './featureFlags.js'
import darkModeVariantPlugin from './flagged/darkModeVariantPlugin'

import hash from 'object-hash'
import log from './util/log'

let previousConfig = null
let processedPlugins = null
Expand All @@ -31,6 +32,13 @@ export default function(getConfig) {
previousConfig = config

if (configChanged) {
if (config.target) {
log.warn([
'The `target` feature has been removed in Tailwind CSS v2.0.',
'Please remove this option from your config file to silence this warning.',
])
}

issueFlagNotices(config)

processedPlugins = processPlugins(
Expand Down

0 comments on commit 7e1a1e0

Please sign in to comment.