Skip to content

Commit 64afa38

Browse files
committed
Update tailwind-sass configs
1 parent 5ff82e8 commit 64afa38

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

resources/tailwind.config.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
/** @type {import('tailwindcss').Config} */
12
module.exports = {
2-
darkMode: 'media', // or 'media' or 'class'
3-
theme: {
4-
extend: {},
5-
},
6-
variants: {
7-
extend: {},
8-
},
9-
plugins: [],
10-
}
3+
content: ["./views/**/*.blade.php"],
4+
theme: {
5+
extend: {},
6+
},
7+
plugins: [],
8+
};

resources/webpack.mix.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
require("laravel-mix-purgecss");
22

3-
const fs = require("fs");
43
const path = require("path");
54
const mix = require("laravel-mix");
65
const tailwindcss = require("tailwindcss");
6+
7+
mix
8+
.setPublicPath("./")
9+
.sass(path.resolve("sass/starter/auth.scss"), path.resolve("css/starter.css"))
10+
.options({
11+
processCssUrls: false,
12+
postCss: [tailwindcss("./tailwind.config.js")],
13+
})
14+
.version();

0 commit comments

Comments
 (0)