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'] | |
}) | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is working but Vuetify grid is deleted. Any idea?