diff options
author | opera7133 <ainznino@pm.me> | 2021-06-04 08:41:29 +0300 |
---|---|---|
committer | opera7133 <ainznino@pm.me> | 2021-06-04 08:41:29 +0300 |
commit | 1519b9c3babb79aee560a0dbb77a833940c340ee (patch) | |
tree | f5b23d98680bdfe5da08372ff6d72a606134e66d /assets | |
parent | 517b101dd5daa5ac1a70f91a12fb5e35906093b7 (diff) |
maybe fixed
Diffstat (limited to 'assets')
-rw-r--r-- | assets/css/postcss.config.js | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/assets/css/postcss.config.js b/assets/css/postcss.config.js index 1e790fc..82ab2c7 100644 --- a/assets/css/postcss.config.js +++ b/assets/css/postcss.config.js @@ -1,27 +1,27 @@ -const themeDir = __dirname + '/../../'; +const themeDir = __dirname + "/../../"; -const purgecss = require('@fullhuman/postcss-purgecss')({ - // see https://gohugo.io/hugo-pipes/postprocess/#css-purging-with-postcss - content: [ - './hugo_stats.json', - themeDir + '/hugo_stats.json', - 'exampleSite/hugo_stats.json', - ], - defaultExtractor: (content) => { - let els = JSON.parse(content).htmlElements; - return els.tags.concat(els.classes, els.ids); - } -}) +const purgecss = require("@fullhuman/postcss-purgecss")({ + // see https://gohugo.io/hugo-pipes/postprocess/#css-purging-with-postcss + content: [ + "./hugo_stats.json", + themeDir + "/hugo_stats.json", + "exampleSite/hugo_stats.json", + ], + defaultExtractor: (content) => { + let els = JSON.parse(content).htmlElements; + return els.tags.concat(els.classes, els.ids); + }, +}); -module.exports = { - plugins: [ - require('postcss-import')({ - path: [themeDir] - }), - require('tailwindcss')(themeDir + 'assets/css/tailwind.config.js'), - require('autoprefixer')({ - path: [themeDir] - }), - ...(process.env.HUGO_ENVIRONMENT === 'production' ? [purgecss] : []) - ] -}
\ No newline at end of file +module.exports = { + plugins: [ + require("postcss-import")({ + path: [themeDir], + }), + require("tailwindcss")(themeDir + "assets/css/tailwind.config.js"), + require("autoprefixer")({ + path: [themeDir], + }), + ...(process.env.HUGO_ENVIRONMENT === "production" ? [purgecss] : []), + ], +}; |