-
-
Notifications
You must be signed in to change notification settings - Fork 86
Laravel Mix
tanthammar edited this page Dec 29, 2020
·
9 revisions
You must add support for nested css,
if you used the Artisan command to install Tall-forms, or if you installed the custom.css
Otherwise, you won't be able to compile your css.
npm install postcss-import autoprefixer@9 postcss-nesting alpinejs --save-dev
or if you are using PostCSS 8
npm install postcss@latest autoprefixer@latest postcss-nesting alpinejs --save-dev
const mix = require('laravel-mix');
const cssNesting = require('postcss-nesting'); //<-- ADD THIS -->
mix.js('resources/js/app.js', 'public/js')
.postCss('resources/css/app.css', 'public/css', [
require('postcss-import'),
cssNesting(), //<-- AND THIS -->
require('tailwindcss'),
require('autoprefixer') //if you're on tailwind 2
.webpackConfig(require('./webpack.config')); //if you're on Jetstream v1.x
const mix = require('laravel-mix');
const tailwindcss = require('tailwindcss');
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.options({
processCssUrls: false,
postCss: [ tailwindcss('./tailwind.config.js') ],
});
see Laravel Mix 6 + TW2 Upgrade.
Next step -> install the theme
- Installation
- Requirements
- v5 Upgrade Guide
- v6 Upgrade Guide
- v7 Upgrade Guide
- Support
- Quickstart
- Manual installation
- Optional
- Form component
- Field
- Field types
- Example Form
- Blade Components
- Notifications