webtourismus / tailwindcss-cli
Standalone binary CLI executable of Tailwind CSS for Linux x64 systems. Patched version including postcss-import and postcss-nested.
Installs: 2 721
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
README
This is a patched version of the standalone CLI build of Tailwind CSS for Linux x64 systems, easily installable as a composer package. Contrary to the default CLI, this patched version also includes postcss-import and postcss-nested bundled inside the CLI executable.
- Install with
composer require webtourismus/tailwindcss-cli
- Execute with
./vendor/bin/tailwindcss
- (optional) If you want to use import and/or nesting in your CSS source file, use the
--postcss
parameter to specify your PostCSS config file.
Usage example:
./vendor/bin/tailwindcss --input my_tailwind_source.css --output my_compiled_tailwind.css --content my_site/*.html --postcss my_custom_postcss.config.css
Example postcss.config.js
file with import and nesting enabled:
module.exports = {
plugins: {
'postcss-import': {},
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
}
}
See tailwindcss.com/blog/standalone-cli for more instructions.
See tailwindcss.com/docs/using-with-preprocessors for PostCSS options.