Closed adityamwagh closed 3 years ago
This is the output of hugo server -s exampleSite --themesDir=../.. --disableFastRender --verbose
. The output waits for a long time at the PostCSS step.
Start building sites …
INFO 2021/05/11 04:00:50 syncing static files to /
INFO 2021/05/11 04:00:50 postcss: use config file /mnt/c/Users/adiwa/Desktop/Projects/adityamwagh.github.io/themes/nightnday/assets/css/postcss.config.js
| EN
-------------------+-----
Pages | 13
Paginator pages | 0
Non-page files | 0
Static files | 0
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Built in 23487 ms
Watching for changes in /mnt/c/Users/adiwa/Desktop/Projects/adityamwagh.github.io/themes/nightnday/{archetypes,assets,exampleSite,layouts,package.json}
Watching for config changes in exampleSite/config.toml
Environment: "development"
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
Mmmhh, hard to tell without a look into your actual setup. Lots of questions:
The output from the main branch (#ccc1e6f2) works on my machine™ within a reasonable time:
hugo-theme-tailwindcss-starter git:(main) hugo server -s exampleSite --themesDir=../.. --disableFastRender --verbose
INFO 2021/05/11 08:41:50 Using config file:
Start building sites …
INFO 2021/05/11 08:41:50 syncing static files to /
INFO 2021/05/11 08:41:50 postcss: use config file /Users/dirkolbrich/Coding/gohugo/hugo-theme-tailwindcss-starter/assets/css/postcss.config.js
INFO 2021/05/11 08:41:51 postcss: (node:38004) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/dirkolbrich/Coding/gohugo/hugo-theme-tailwindcss-starter/node_modules/postcss/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)
| EN
-------------------+-----
Pages | 13
Paginator pages | 0
Non-page files | 0
Static files | 0
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Built in 4566 ms
Watching for changes in /Users/dirkolbrich/Coding/gohugo/hugo-theme-tailwindcss-starter/{archetypes,assets,exampleSite,layouts,package.json}
Watching for config changes in exampleSite/config.toml
Environment: "development"
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
The delay is because of PostCSS. I'm switching back to Jekyll + Bootstrap for now.
¯\(ツ)/¯
I am following the instructions on the README, but it's taking around 25 seconds to build the example website. I switched from Jekyll + Bootstrap to Hugo + Tailwind for performance gains.
Any idea how I can debug the issue?