-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dipankar Das <[email protected]>
- Loading branch information
1 parent
f9235e9
commit e1b1dcc
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[build] | ||
# Specify the directory containing the output of Hugo | ||
publish = "public" | ||
# Hugo build command | ||
command = "hugo --gc --minify" | ||
|
||
[context.production] | ||
# Specify the Hugo version | ||
HUGO_VERSION = "0.139.2" | ||
|
||
# Install additional dependencies before building | ||
[context.production.environment] | ||
NODE_VERSION = "lts/*" | ||
GO_VERSION = "stable" | ||
|
||
[context.production.command] | ||
# Custom pre-build steps | ||
[[context.production.command.pre]] | ||
command = "npm install -D postcss postcss-cli autoprefixer hugo-extended" | ||
|
||
[[plugins]] | ||
# Install Dart Sass plugin if needed | ||
package = "@netlify/plugin-functions-core" | ||
|
||
[[plugins.inputs]] | ||
command = "sudo snap install dart-sass" | ||
|
||
[build.processing] | ||
# Ensure clean builds | ||
skip_processing = false | ||
|
||
# [context.branch-deploy] | ||
# # Customize branch deploy logic if necessary | ||
# command = "hugo --gc --minify --buildDrafts" |