Skip to content

Commit

Permalink
feat: deprecate css/whitepaper format
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt committed Aug 23, 2020
1 parent a778d65 commit 89b1754
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@ import { Config } from './config'
import { isColor } from './utils'
import { enhanceWhitepaperConfig } from './enhance-whitepaper-config'
import { replaceAliasToVariable } from './replace-alias-to-variable'
import { deprecate } from './deprecate'

const context = new Map()

Api.registerFormat({
name: 'css/whitepaper',
formatter(dictionary, config) {
deprecate(
'Warning: css/whitepaper format is deprecated, ' +
'you should use css/variables format instead.\n' +
'See more information for migration: https://github.com/yarastqt/themekit/tree/master/docs/migrations/0077.md',
)

const defaultOptions = { useAliasVariables: false }
const options = Object.assign(defaultOptions, this.options)

Expand Down

0 comments on commit 89b1754

Please sign in to comment.