Files
logseq/web/postcss.config.js
Tienson Qin e464d11662 Lazy loading
2020-07-08 18:01:56 +08:00

22 lines
518 B
JavaScript

const purgecss = require('@fullhuman/postcss-purgecss')({
// Specify the paths to all of the template files in your project
content: [
'../resources/static/js/main.js',
// etc.
],
// Include any special characters you're using in this regular expression
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
});
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
...process.env.NODE_ENV === 'production'
? [purgecss]
: []
]
};