chore: update build configs

This commit is contained in:
Xin 2023-08-26 12:21:02 +01:00
parent d1bc057c09
commit af77173a35
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"scripts": {
"dev:theme": "hugo server --environment=theme --source=exampleSite --themesDir=../.. --disableFastRender -D --port 1313",
"dev:theme": "hugo server --logLevel debug --environment=theme --source=exampleSite --themesDir=../.. --disableFastRender -D --port 1313",
"dev": "hugo server --source=exampleSite --themesDir=../.. --disableFastRender -D --port 1313",
"build:css": "npx postcss --config postcss.config.js --env production assets/css/styles.css -o assets/css/compiled/main.css",
"build": "hugo --gc --minify --themesDir=../.. --source=exampleSite"

View File

@ -7,6 +7,6 @@ module.exports = {
require('postcss-import'),
require('@tailwindcss/nesting'),
tailwind,
...(process.env.HUGO_ENVIRONMENT === 'production' ? [autoprefixer] : [])
autoprefixer
],
};