Created
December 7, 2018 00:10
-
-
Save plcosta/c6b567208b7198efa6cb4da14a07d145 to your computer and use it in GitHub Desktop.
PostCSS Config - TailwindCSS, Vuetify and PurgeCSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tailwindcss = require('tailwindcss') | |
const autoprefixer = require('autoprefixer') | |
const purgecss = require('@fullhuman/postcss-purgecss') | |
module.exports = { | |
plugins: [ | |
tailwindcss('./tailwind.js'), | |
autoprefixer({ | |
add: true, | |
grid: true | |
}), | |
purgecss({ | |
content: [ | |
'./src/**/*.html', | |
'./src/**/*.vue' | |
], | |
whitelistPatterns: [/^v-*/, /^theme-*/, /^application--*/], | |
whitelistPatternsChildren: [/^v-*/, /^theme-*/, /^application--*/], | |
whitelist: ['spacer', 'primary', 'secondary', 'accent', 'error', 'warning', 'info', 'success'] | |
}) | |
] | |
} |
This is working but Vuetify grid is deleted. Any idea?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I this working on your end? I am having trouble implementing this on my project. my Vuetify Grids are not working properly