mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Fixed some styling
This commit is contained in:
parent
d833174b4e
commit
3febffdb55
@ -80,7 +80,11 @@ function buildToFile(compileOptions, startTime) {
|
||||
|
||||
utils.header()
|
||||
utils.log()
|
||||
utils.log(emoji.go, 'Building...', colors.file(inputFileSimplePath || 'defaults: @base, @components and @utilities.'))
|
||||
utils.log(
|
||||
emoji.go,
|
||||
'Building...',
|
||||
colors.file(inputFileSimplePath || 'defaults: @base, @components and @utilities.')
|
||||
)
|
||||
|
||||
return compile(compileOptions).then(result => {
|
||||
utils.writeFile(compileOptions.outputFile, result.css)
|
||||
|
||||
@ -26,11 +26,13 @@ const defaultOptions = {
|
||||
export default function compile(options = {}) {
|
||||
const config = { ...defaultOptions, ...options }
|
||||
|
||||
const css = config.inputFile ? utils.readFile(config.inputFile) : `
|
||||
const css = config.inputFile
|
||||
? utils.readFile(config.inputFile)
|
||||
: `
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
`;
|
||||
`
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
postcss(config.plugins)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user