tailwindcss
Advanced tools
Comparing version
@@ -44,3 +44,3 @@ #!/usr/bin/env node | ||
function buildTailwind(inputFile, config, write) { | ||
console.log('Building Tailwind!'); | ||
console.warn('Building Tailwind!'); | ||
@@ -51,4 +51,4 @@ const input = _fsExtra2.default.readFileSync(inputFile, 'utf8'); | ||
write(result.css); | ||
console.log('Finished building Tailwind!'); | ||
}).catch(error => console.log(error)); | ||
console.warn('Finished building Tailwind!'); | ||
}).catch(error => console.error(error)); | ||
} | ||
@@ -68,3 +68,3 @@ | ||
if (_fsExtra2.default.existsSync(destination)) { | ||
console.log(`Destination ${destination} already exists, aborting.`); | ||
console.error(`Destination ${destination} already exists, aborting.`); | ||
_process2.default.exit(1); | ||
@@ -76,3 +76,3 @@ } | ||
_fsExtra2.default.outputFileSync(destination, output.replace("require('./plugins/container')", "require('tailwindcss/plugins/container')")); | ||
console.log(`Generated Tailwind config: ${destination}`); | ||
console.warn(`Generated Tailwind config: ${destination}`); | ||
_process2.default.exit(); | ||
@@ -79,0 +79,0 @@ }); |
@@ -15,3 +15,7 @@ 'use strict'; | ||
if (atRule.params === 'preflight') { | ||
atRule.before(_postcss2.default.parse(_fs2.default.readFileSync(`${__dirname}/../../css/preflight.css`, 'utf8'))); | ||
const preflightTree = _postcss2.default.parse(_fs2.default.readFileSync(`${__dirname}/../../css/preflight.css`, 'utf8')); | ||
preflightTree.walk(node => node.source = atRule.source); | ||
atRule.before(preflightTree); | ||
atRule.remove(); | ||
@@ -18,0 +22,0 @@ } |
{ | ||
"name": "tailwindcss", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "A utility-first CSS framework for rapidly building custom user interfaces.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
33726
0.01%1473804
-1.47%