-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add current version & license * generate fixtures * update changelog Co-authored-by: Adam Wathan <[email protected]>
- Loading branch information
1 parent
2c81a35
commit 7ad9a54
Showing
6 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
import fs from 'fs' | ||
import postcss from 'postcss' | ||
import packageJson from '../../package.json' | ||
|
||
export default function () { | ||
return function ({ addBase }) { | ||
const normalizeStyles = postcss.parse( | ||
fs.readFileSync(require.resolve('modern-normalize'), 'utf8') | ||
) | ||
const preflightStyles = postcss.parse(fs.readFileSync(`${__dirname}/css/preflight.css`, 'utf8')) | ||
addBase([...normalizeStyles.nodes, ...preflightStyles.nodes]) | ||
|
||
addBase([ | ||
postcss.comment({ | ||
text: `! tailwindcss v${packageJson.version} | MIT License | https://tailwindcss.com`, | ||
}), | ||
...normalizeStyles.nodes, | ||
...preflightStyles.nodes, | ||
]) | ||
} | ||
} |