LeagueStats/client/postcss.config.js

22 lines
515 B
JavaScript
Raw Normal View History

2019-10-22 15:44:02 +00:00
const purgecss = require('@fullhuman/postcss-purgecss')({
2019-10-22 15:44:02 +00:00
// Specify the paths to all of the template files in your project
content: [
'./src/**/*.vue',
'./public/**/*.html',
],
// Include any special characters you're using in this regular expression
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
})
2019-03-30 22:55:48 +00:00
module.exports = {
plugins: [
2019-10-22 15:44:02 +00:00
require('tailwindcss'),
require('autoprefixer'),
...process.env.NODE_ENV === 'production'
? [purgecss]
: []
]
}