decoupling-drupal-vuejs/vuejs/postcss.config.js

16 lines
409 B
JavaScript
Raw Normal View History

2019-05-24 23:11:42 +00:00
module.exports = {
2019-08-30 16:44:23 +00:00
plugins: [
require('postcss-import'),
require('tailwindcss'),
require('postcss-nested'),
2019-08-30 16:57:30 +00:00
require('autoprefixer'),
process.env.NODE_ENV === 'production' && require('@fullhuman/postcss-purgecss')({
content: [
'./src/**/*.vue',
'./public/index.html',
],
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || []
})
2019-08-30 16:44:23 +00:00
]
2019-05-24 23:11:42 +00:00
}