Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josh-taylor/tailwind-styleguide
Laravel Mix plugin for generating a styleguide for your Tailwind project
https://github.com/josh-taylor/tailwind-styleguide
laravel-mix laravel-mix-plugin styleguide styleguide-css tailwindcss tailwindcss-plugin
Last synced: 2 months ago
JSON representation
Laravel Mix plugin for generating a styleguide for your Tailwind project
- Host: GitHub
- URL: https://github.com/josh-taylor/tailwind-styleguide
- Owner: josh-taylor
- License: mit
- Created: 2018-07-20T14:53:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T20:59:44.000Z (about 2 years ago)
- Last Synced: 2024-11-02T07:08:40.004Z (2 months ago)
- Topics: laravel-mix, laravel-mix-plugin, styleguide, styleguide-css, tailwindcss, tailwindcss-plugin
- Language: JavaScript
- Homepage: https://josh.codes/blog/tailwind-styleguide-for-laravel-mix/
- Size: 38.1 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tailwind Styleguide for Laravel Mix
This extension adds a styleguide for your Tailwind apps in Mix.
![Tailwind Styleguide](/screenshot.png?raw=true)
## Usage
First install the extension
```sh
npm install laravel-mix-talilwind-styleguide
```Then you can require it within your `webpack.mix.js` file
```js
let mix = require('laravel-mix');require('laravel-mix-tailwind-styleguide');
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css')
.tailwindStyleguide();
```Once this has been done, running either `npm run watch` or `npm run dev` will start up a local HTTP server at
[http://localhost:8888/](http://localhost:8888/).