mirror of
https://gitlab.com/RemixDev/deemix-webui.git
synced 2024-12-28 02:16:11 +00:00
Fixed font not rendering properly
This commit is contained in:
parent
4854f2a108
commit
d3c3dcb769
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
purge: {
|
purge: {
|
||||||
// https://medium.com/@kyis/vue-tailwind-purgecss-the-right-way-c70d04461475
|
// https://medium.com/@kyis/vue-tailwind-purgecss-the-right-way-c70d04461475
|
||||||
content: [`./public/**/*.html`, `./src/**/*.vue`, `./src/**/*.js`],
|
content: [`./public/**/*.html`, `./public/**/*.ejs`, `./src/**/*.vue`, `./src/**/*.js`],
|
||||||
defaultExtractor(content) {
|
defaultExtractor(content) {
|
||||||
const contentWithoutStyleBlocks = content.replace(/<style[^]+?<\/style>/gi, '')
|
const contentWithoutStyleBlocks = content.replace(/<style[^]+?<\/style>/gi, '')
|
||||||
return contentWithoutStyleBlocks.match(/[A-Za-z0-9-_/:]*[A-Za-z0-9-_/]+/g) || []
|
return contentWithoutStyleBlocks.match(/[A-Za-z0-9-_/:]*[A-Za-z0-9-_/]+/g) || []
|
||||||
|
|
Loading…
Reference in a new issue