Merge pull request #442 from tailwindcss/preflight-sourcemaps
Add sourcemaps for replaced preflight styles
This commit is contained in:
commit
14f1ba6cb9
1 changed files with 6 additions and 2 deletions
|
|
@ -13,9 +13,13 @@ export default function(config) {
|
|||
|
||||
css.walkAtRules('tailwind', atRule => {
|
||||
if (atRule.params === 'preflight') {
|
||||
atRule.before(
|
||||
postcss.parse(fs.readFileSync(`${__dirname}/../../css/preflight.css`, 'utf8'))
|
||||
const preflightTree = postcss.parse(
|
||||
fs.readFileSync(`${__dirname}/../../css/preflight.css`, 'utf8')
|
||||
)
|
||||
|
||||
preflightTree.walk(node => (node.source = atRule.source))
|
||||
|
||||
atRule.before(preflightTree)
|
||||
atRule.remove()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue