mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Use join instead of resolve and update path import
This fixes `pkg` bundling
This commit is contained in:
parent
5b4baea1d6
commit
30b76cf472
@ -1,5 +1,5 @@
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import * as path from 'path'
|
||||
import postcss from 'postcss'
|
||||
import createUtilityPlugin from './util/createUtilityPlugin'
|
||||
import buildMediaQuery from './util/buildMediaQuery'
|
||||
@ -365,7 +365,7 @@ export let variantPlugins = {
|
||||
export let corePlugins = {
|
||||
preflight: ({ addBase }) => {
|
||||
let preflightStyles = postcss.parse(
|
||||
fs.readFileSync(path.resolve(__dirname, 'css/preflight.css'), 'utf8')
|
||||
fs.readFileSync(path.join(__dirname, './css/preflight.css'), 'utf8')
|
||||
)
|
||||
|
||||
addBase([
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user