mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Make processed Tailwind config file available in Jigsaw
This commit is contained in:
parent
fa9c74a48b
commit
e2b02e4fa3
@ -4,6 +4,7 @@ return [
|
||||
'baseUrl' => '',
|
||||
'production' => false,
|
||||
'collections' => [],
|
||||
'config' => json_decode(file_get_contents(__DIR__ . '/tailwind.json'), true),
|
||||
'colors' => ['red', 'orange', 'yellow', 'green', 'teal', 'blue', 'indigo', 'purple', 'pink'],
|
||||
'active' => function ($page, $path) {
|
||||
return str_contains($page->getPath(), $path);
|
||||
|
||||
1
docs/tailwind.json
Normal file
1
docs/tailwind.json
Normal file
File diff suppressed because one or more lines are too long
@ -1,16 +1,9 @@
|
||||
const mix = require('laravel-mix');
|
||||
const tailwind = require('./../lib/index.js');
|
||||
const mix = require('laravel-mix')
|
||||
const tailwind = require('./../lib/index.js')
|
||||
const config = require('./tailwind.js')
|
||||
const fs = require('fs')
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mix Asset Management
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Mix provides a clean, fluent API for defining some Webpack build steps
|
||||
| for your Laravel application. By default, we are compiling the Sass
|
||||
| file for the application as well as bundling up all the JS files.
|
||||
|
|
||||
*/
|
||||
fs.writeFileSync('./tailwind.json', JSON.stringify(config))
|
||||
|
||||
mix.js('source/_assets/js/app.js', 'source/js')
|
||||
.less('source/_assets/less/main.less', 'source/css')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user