A
A
antimodern2019-01-23 23:12:24
css
antimodern, 2019-01-23 23:12:24

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

1 answer(s)
V
Vitaly Kirenkov, 2019-01-23
@DeLaVega

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 question

Ask a Question

731 491 924 answers to any question