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.
path.resolve
1 parent ee0f329 commit 5b4baeaCopy full SHA for 5b4baea
src/corePlugins.js
@@ -1,4 +1,5 @@
1
import fs from 'fs'
2
+import path from 'path'
3
import postcss from 'postcss'
4
import createUtilityPlugin from './util/createUtilityPlugin'
5
import buildMediaQuery from './util/buildMediaQuery'
@@ -363,7 +364,9 @@ export let variantPlugins = {
363
364
365
export let corePlugins = {
366
preflight: ({ addBase }) => {
- let preflightStyles = postcss.parse(fs.readFileSync(`${__dirname}/css/preflight.css`, 'utf8'))
367
+ let preflightStyles = postcss.parse(
368
+ fs.readFileSync(path.resolve(__dirname, 'css/preflight.css'), 'utf8')
369
+ )
370
371
addBase([
372
postcss.comment({
0 commit comments