Skip to content

Commit c7b459a

Browse files
authored
Merge pull request #196 from gethinode/develop
Support Dart Sass
2 parents 04030ce + bfd02f9 commit c7b459a

File tree

7 files changed

+8819
-6948
lines changed

7 files changed

+8819
-6948
lines changed

.github/workflows/lint-build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ jobs:
5858
cache: 'npm'
5959
cache-dependency-path: '**/package-lock.json'
6060

61+
- name: Install Dart Sass
62+
run: |
63+
if [ "$RUNNER_OS" == "Linux" ]; then
64+
sudo snap install dart-sass
65+
elif [ "$RUNNER_OS" == "macOS" ]; then
66+
brew install sass/sass/sass
67+
elif [ "$RUNNER_OS" == "Windows" ]; then
68+
choco install sass
69+
fi
70+
shell: bash
71+
6172
# [24/AUG/23] Adjusted from npm ci for non-macOS to prevent EBADPLATFORM error due to fsevents
6273
- name: Perform clean install of npm
6374
run: |

config/_default/params.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
[main.externalLinks]
99
cue = false
1010
tab = false
11+
[main.build]
12+
transpiler = "libsass"
1113

1214
[modules]
1315
core = ["bootstrap", "flexsearch", "fontawesome"]

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/gethinode/template
33
go 1.20
44

55
require (
6-
github.com/gethinode/hinode v0.19.0 // indirect
6+
github.com/gethinode/hinode v0.20.0 // indirect
77
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 // indirect
88
github.com/twbs/bootstrap v5.3.0+incompatible // indirect
99
)

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ github.com/gethinode/hinode v0.18.5 h1:6oKtmz2EPfOMY6sy15GWDIJcpjlsswPl78ZqwsCvc
1616
github.com/gethinode/hinode v0.18.5/go.mod h1:TcI/H42BxRS4UNqz9/bC246sYC6z3Ssfv0ZuOF5wEpM=
1717
github.com/gethinode/hinode v0.18.6 h1:AWzrwNOEtRIs67FjNCmeN4yL/bXf1FbCTAqHg2FfQiQ=
1818
github.com/gethinode/hinode v0.18.6/go.mod h1:TcI/H42BxRS4UNqz9/bC246sYC6z3Ssfv0ZuOF5wEpM=
19+
github.com/gethinode/hinode v0.20.0 h1:A6lxLIdKUMHOFWz9D7iQaSpqcMlKDPK1e/Cs3/SV1P8=
20+
github.com/gethinode/hinode v0.20.0/go.mod h1:/q/TH3TlGSzBHunDb3TdrpO7Zrckr0CeLay/Qpj9uWQ=
1921
github.com/gethinode/hinode v0.18.7 h1:I2MwE1K2E7TjTiPaHUNGNLrD0FGxN0oS3svMlluGrmE=
2022
github.com/gethinode/hinode v0.18.7/go.mod h1:TcI/H42BxRS4UNqz9/bC246sYC6z3Ssfv0ZuOF5wEpM=
2123
github.com/gethinode/hinode v0.19.0 h1:7QDAA0RGUvFJMlmzoBfUy8b27yI5+84xPBc5/1qfWrU=

netlify.toml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
[build]
22
publish = "public"
3-
functions = "functions"
4-
5-
[build.environment]
6-
NODE_VERSION = "18.16.1"
7-
NPM_VERSION = "9.5.1"
8-
9-
[context.production]
103
command = "npm run build"
114

12-
[context.production.environment]
13-
HUGO_VERSION = "0.110.0"
5+
[build.environment]
6+
DART_SASS_VERSION = "1.66.1"
7+
HUGO_VERSION = "0.118.2"
148
HUGO_ENV = "production"
159
HUGO_ENABLEGITINFO = "true"
10+
NODE_VERSION = "18.17.1"
11+
NPM_VERSION = "9.6.7"
1612

1713
[[headers]]
1814
for = "/*"
@@ -78,4 +74,18 @@
7874
targetPort = 1313
7975
port = 8888
8076
publish = "public"
81-
autoLaunch = false
77+
autoLaunch = false
78+
79+
[[plugins]]
80+
package = "@gethinode/netlify-plugin-dartsass"
81+
82+
[[plugins]]
83+
package = "netlify-plugin-hugo-cache-resources"
84+
[plugins.inputs]
85+
# Relative path to source directory in case you use Hugo's "--s" option
86+
# srcdir = ""
87+
88+
[[plugins]]
89+
package = "@netlify/plugin-lighthouse"
90+
# [plugins.inputs]
91+
# output_path = "reports/lighthouse.html"

0 commit comments

Comments
 (0)