Created
January 21, 2020 20:23
-
-
Save ukchukx/551b60bf30c45909a34c41295b050920 to your computer and use it in GitHub Desktop.
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 purgecss = require('@fullhuman/postcss-purgecss')({ | |
content: ['./src/**/*.svelte', './src/**/*.html'], | |
whitelistPatterns: [/svelte-/], | |
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || [] | |
}) | |
module.exports = { | |
plugins: [ | |
require('tailwindcss'), | |
...(!process.env.ROLLUP_WATCH ? [purgecss] : []) | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment