From af77173a3575250e02a72fda1d4668d75920616f Mon Sep 17 00:00:00 2001 From: Xin Date: Sat, 26 Aug 2023 12:21:02 +0100 Subject: [PATCH] chore: update build configs --- package.json | 2 +- postcss.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c668b742..320d651e 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/postcss.config.js b/postcss.config.js index 98796a1e..6c6a360b 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -7,6 +7,6 @@ module.exports = { require('postcss-import'), require('@tailwindcss/nesting'), tailwind, - ...(process.env.HUGO_ENVIRONMENT === 'production' ? [autoprefixer] : []) + autoprefixer ], };