mirror of
https://github.com/2234839/web-font.git
synced 2025-04-05 04:02:43 +08:00
24 lines
619 B
JavaScript
24 lines
619 B
JavaScript
const tailwindcss = require('tailwindcss');
|
|
|
|
const purgecss = require('@fullhuman/postcss-purgecss')({
|
|
// Specify the paths to all of the template files in your project
|
|
content: [
|
|
'./static/**/*.svelte',
|
|
'./static/**/*.js',
|
|
'./static/**/*.ts',
|
|
'./static/*.svelte',
|
|
'./static/*.js',
|
|
'./static/*.ts',
|
|
`111 `
|
|
],
|
|
|
|
// Include any special characters you're using in this regular expression
|
|
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [],
|
|
});
|
|
module.exports = {
|
|
plugins: [
|
|
tailwindcss,
|
|
...(process.env.NODE_ENV === 'development' ? [] : [purgecss]),
|
|
],
|
|
};
|