diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-07 15:18:30 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-07 15:21:44 +0200 |
| commit | 67d9a46c2db39f8e469cc32c50fa2fb7a197971d (patch) | |
| tree | 4e1be10a19102a5e9f30892d284b8d8f1eb4d122 | |
| parent | 1b9806ad6a5cd3295c96d1322af96b33fd246533 (diff) | |
| download | gohugo-theme-ed-67d9a46c2db39f8e469cc32c50fa2fb7a197971d.tar.gz | |
Replace deprecated --verbose flag with --logLevel info
The --verbose flag has been deprecated in Hugo v0.114.0 and will be
removed in future releases. Update the npm script for 'server' to use
--logLevel info instead, as per Hugo's recommendation.
| -rw-r--r-- | CHANGELOG.md | 4 | ||||
| -rw-r--r-- | package.json | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e9207d..5e64464 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 repository path is now specified under the `imports` section in the `module` block. This change improves clarity and aligns with Hugo's recommended practices for managing theme dependencies. +- Replaced the deprecated `--verbose` flag with `--logLevel info` in the npm + script for `server` in `package.json`. This change addresses a deprecation + warning introduced in Hugo v0.114.0, ensuring compatibility with future versions + of Hugo. ## [v0.7.0](https://github.com/sergeyklay/gohugo-theme-ed/compare/v0.6.0...v0.7.0) diff --git a/package.json b/package.json index 065f418..2677da3 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "author": "Serghei Iakovlev <egrep@protonmail.ch>", "main": "index.js", "scripts": { - "server": "HUGO_RESOURCEDIR='../resources' HUGO_ENV=development hugo server --verbose --source=exampleSite --buildDrafts --buildFuture --ignoreCache --disableFastRender", + "server": "HUGO_RESOURCEDIR='../resources' HUGO_ENV=development hugo server --logLevel info --source=exampleSite --buildDrafts --buildFuture --ignoreCache --disableFastRender", "test": "playwright test", "lint": "npm run lint:js && npm run lint:editorconfig", "lint:editorconfig": "editorconfig-checker", |
