Welcome to mirror list, hosted at ThFree Co, Russian Federation.

postcss.config.js « dev « css « assets - github.com/leonardofaria/bento.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 48e0498ff42c030936337be850cbbdc43a3e5d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const themeDir = __dirname + '/../../../';

module.exports = {
  plugins: [
    require('postcss-import')({
      path: [themeDir]
    }),
    require('tailwindcss')(themeDir + 'assets/css/tailwind.config.js'),
    // Configuration of purgecss for Tailwindcss
    // see https://tailwindcss.com/docs/controlling-file-size/#setting-up-purgecss
    // require('@fullhuman/postcss-purgecss')({
    //   // Specify the paths to all of the template files in your project
    //   content: [
    //     themeDir + 'layouts/**/*.html',
    //     themeDir + 'exampleSite/content/**/*.html',
    //     'layouts/**/*.html',
    //     'content/**/*.html',
    //     'content/**/*.md',
    //     '**/*.md',
    //   ],
    //   // Include any special characters you're using in this regular expression
    //   defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [],
    //   fontFace: true,
    //   safelist: [/article/]
    // }),
    require('autoprefixer')({
        grid: true
    }),
  ]
}