mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 09:56:31 +00:00
feat(dev): better support for processing tailwind css
- support use tailwind’s most features. - support write css right next to the components.
This commit is contained in:
@@ -9,7 +9,8 @@ module.exports = (ctx) => ({
|
||||
'../resources/static/js/main.js',
|
||||
// etc.
|
||||
],
|
||||
// https://tailwindcss.com/docs/controlling-file-size#setting-up-purgecss
|
||||
|
||||
// https://tailwindcss.com/docs/controlling-file-size#understanding-the-regex
|
||||
// without this we miss keeping eg. `w-1/2`
|
||||
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user