Remove example class from dist build
Still want to be including this in our tests, so sanity test now runs against a separate fixture.
This commit is contained in:
parent
684f23dcac
commit
e46cc65d80
7 changed files with 454 additions and 1151 deletions
10
__tests__/fixtures/tailwind-input.css
Normal file
10
__tests__/fixtures/tailwind-input.css
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
@tailwind preflight;
|
||||
|
||||
@tailwind utilities;
|
||||
|
||||
@responsive {
|
||||
.example {
|
||||
@apply .font-bold;
|
||||
color: config('colors.red');
|
||||
}
|
||||
}
|
||||
|
|
@ -7,12 +7,12 @@ import tailwind from '../src/index'
|
|||
* Tests
|
||||
*/
|
||||
it('generates the right CSS', () => {
|
||||
const input = fs.readFileSync(path.resolve(`${__dirname}/../css/tailwind.css`), 'utf8')
|
||||
const input = fs.readFileSync(path.resolve(`${__dirname}/fixtures/tailwind-input.css`), 'utf8')
|
||||
|
||||
return postcss([tailwind()])
|
||||
.process(input)
|
||||
.then(result => {
|
||||
const expected = fs.readFileSync(path.resolve(`${__dirname}/fixtures/tailwind.css`), 'utf8')
|
||||
const expected = fs.readFileSync(path.resolve(`${__dirname}/fixtures/tailwind-output.css`), 'utf8')
|
||||
|
||||
expect(result.css).toBe(expected)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,10 +1,3 @@
|
|||
@tailwind preflight;
|
||||
|
||||
@tailwind utilities;
|
||||
|
||||
@responsive {
|
||||
.example {
|
||||
@apply .font-bold;
|
||||
color: config('colors.red');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
1580
dist/tailwind.css
vendored
1580
dist/tailwind.css
vendored
File diff suppressed because it is too large
Load diff
2
dist/tailwind.css.map
vendored
2
dist/tailwind.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/tailwind.min.css
vendored
2
dist/tailwind.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue