erbelion/vite-plugin-laravel-purgecss

How can I define custom url rather than your template?

Closed this issue · 2 comments

Hi,
I'm working on Laravel & Vue.js project. I've a Vuejs file in resources/frontend/
Now how can I define the URL in the config? I can see your template only compile your define path files. How can I purge custom dir files?

@devbipu use paths option instead of templates option, like:

import purge from '@erbelion/vite-plugin-laravel-purgecss'

export default {
    plugins: [
        purge({
            paths: ['resources/frontend/**/*.vue']
        })
    ]
}

then, all .vue files inside resources/frontend dir will be purged.

Thank you :)