mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
fix typography: include plugin on prod build.
This commit is contained in:
8
main.go
8
main.go
@@ -68,7 +68,13 @@ func main() {
|
||||
log.Fatal().Err(err).Msg("failed to load tailwind.config.js")
|
||||
return
|
||||
}
|
||||
config := strings.Replace(string(configb), "module.exports", "tailwind.config", 1)
|
||||
config := strings.Replace(
|
||||
strings.Replace(
|
||||
string(configb),
|
||||
"plugins: [require('@tailwindcss/typography')]", "", 1,
|
||||
),
|
||||
"module.exports", "tailwind.config", 1,
|
||||
)
|
||||
|
||||
styleb, err := os.ReadFile("tailwind.css")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user