[READ-ONLY] Mirror of https://github.com/hacknug/tailwindcss-plugin-utils. A bunch of utilities to help you create and maintain plugins for Tailwind. www.npmjs.com/package/@hacknug/tailwindcss-plugin-utils
0

Configure Feed

Select the types of activity you want to include in your feed.

Fix plugin breaking when theme doesn't contain a given key

Nestor Vera (Jul 24, 2019, 12:59 PM +0200) 956bd134 c7c64fd3

+6 -1
+2 -1
src/index.js
··· 52 52 53 53 return ( 54 54 (!_.isEmpty(value) && value) || 55 - (fallbackKeys.length && getSettings(theme, newThemeKey, newFallbackKeys)) 55 + (fallbackKeys.length && getSettings(theme, newThemeKey, newFallbackKeys)) || 56 + ({}) 56 57 ) 57 58 } 58 59
+4
src/index.test.js
··· 66 66 expect(buildConfig(tailwindConfig, coreUtils, 'columnCount')) 67 67 .toStrictEqual({ 2: { columnCount: 2 }, 4: { columnCount: 4 } }) 68 68 }) 69 + test('from theme() undefined', () => { 70 + expect(buildConfig(tailwindConfig, coreUtils, 'backgroundImage')) 71 + .toStrictEqual({}) 72 + }) 69 73 test('from defaultConfig object', () => { 70 74 expect(buildConfig(tailwindConfig, coreUtils, 'columnSpan')) 71 75 .toStrictEqual({ all: { columnSpan: 'all' }, none: { columnSpan: 'none' } })