We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f845074 commit fc19bc2Copy full SHA for fc19bc2
__tests__/customConfig.test.js
@@ -0,0 +1,28 @@
1
+import path from 'path'
2
+import postcss from 'postcss'
3
+import tailwind from '../src/index'
4
+
5
+test('it uses the values from the custom config file', () => {
6
+ return postcss([tailwind(path.resolve(`${__dirname}/fixtures/customConfig.js`))])
7
+ .process(`
8
+ @responsive {
9
+ .foo {
10
+ color: blue;
11
+ }
12
13
+ `)
14
+ .then(result => {
15
+ const expected = `
16
17
18
19
+ @media (min-width: 400px) {
20
+ .mobile\\:foo {
21
22
23
24
+ `
25
26
+ expect(result.css).toMatchCss(expected)
27
+ })
28
+})
__tests__/fixtures/customConfig.js
@@ -0,0 +1,5 @@
+module.exports = {
+ screens: {
+ mobile: '400px',
+}
0 commit comments