Closed dukechill closed 4 years ago
I import package css file in vue file
</template> <script> import /node_module/xxx.css export default { } </script> <style> </style>
and I add purgecss to laravel-mix setting
mix.js('resources/js/app.js', 'public/js') .sass('resources/sass/app.scss', 'public/css') .options({ processCssUrls: false, postCss: [tailwindcss('./tailwind.config.js')], }).purgeCss({ enabled: true, });
and this setting will purge the imported css how can i to avoid this situation? use whitelist? or some example i can follow up?
I found the solution Add class in to whitelistpattern
I import package css file in vue file
and I add purgecss to laravel-mix setting
and this setting will purge the imported css how can i to avoid this situation? use whitelist? or some example i can follow up?