mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat(frontend): redo setup with ts+tailwind and implement auth+header
This commit is contained in:
parent
f2065d3f1f
commit
05f230a7ce
32 changed files with 5927 additions and 2749 deletions
15
frontend/postcss.config.js
Normal file
15
frontend/postcss.config.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
const purgecss = require("@fullhuman/postcss-purgecss")({
|
||||
// Specify the paths to all of the template files in your project
|
||||
content: ["./public/**/*.html", "./src/**/*.tsx"],
|
||||
|
||||
// Include any special characters you're using in this regular expression
|
||||
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
plugins: [
|
||||
require("tailwindcss"),
|
||||
require("autoprefixer"),
|
||||
...(process.env.NODE_ENV === "production" ? [purgecss] : [])
|
||||
]
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue