Answer the question
In order to leave comments, you need to log in
Purgecss removes imported styles, how to fix?
To remove unused styles, I use PurgeCSS, or rather the webpack module.
The problem is that it removes the styles of the Flatpickr datapicker plugin.
Styles are connected via import (View template)
import FlatPickr from 'vue-flatpickr-component'
import { Russian } from 'flatpickr/dist/l10n/ru.js'
import 'flatpickr/dist/flatpickr.css'
Answer the question
In order to leave comments, you need to log in
Well, you read its settings then. There are patterns, whitelist, indication of specific files.
https://www.purgecss.com/configuration
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question