Skip to content

Commit

Permalink
Actually fix webpack.extractText = false validation
Browse files Browse the repository at this point in the history
  • Loading branch information
insin committed Jan 12, 2018
1 parent f2e4f8f commit ee6745a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/config/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,10 @@ export function processWebpackConfig({pluginConfig, report, userConfig}) {
let configType = typeOf(extractText)
let help = `Must be ${chalk.cyan('false')} (to disable CSS extraction) or ` +
`an ${chalk.cyan('Object')} (to configure ExtractTextPlugin)`
if (configType === 'boolean' && extractText !== false) {
report.error('webpack.extractText', extractText, help)
if (configType === 'boolean') {
if (extractText !== false) {
report.error('webpack.extractText', extractText, help)
}
}
else if (configType !== 'object') {
report.error('webpack.extractText', `type: ${configType}`, help)
Expand Down

0 comments on commit ee6745a

Please sign in to comment.