blob: ee0749c72b68296dd71ac8cf6a44b1bfd96281de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
const themeDir = __dirname + "/../";
const cssnanoPlugin = require("cssnano")({
path: [themeDir],
preset: [
"default",
{
discardComments: {
removeAll: true,
},
},
],
});
module.exports = {
plugins: [
require("tailwindcss")(themeDir + "./config/tailwind.config.js"),
require("autoprefixer")({ path: [themeDir] }),
...(process.env.HUGO_ENVIRONMENT === "production" ? [cssnanoPlugin] : []),
],
};
|