Working example of Hugo Modules and Bootstrap .scss files?

bep, I feel like a jerk that i haven’t replied here yet. It was really kind of you to put this together. At the time you posted, I was traveling. And then shortly after the world fell apart (my wife and I launched a new school this year for the children in our community; it’s been a wild ride trying to support our students remotely). In any case, i’m really sorry it’s taken this long to get back to this discussion.

I think my problem is that i’m still missing some fundamental understanding of Hugo modules.

Here’s what i’ve done so far:

  1. Added this to my config.yaml file:
module:
  imports:
    - path: github.com/gohugoio/hugo-bootstrap-scss-v4
  1. Run this command:
    hugo mod init github.com/gohugoio/hugo-bootstrap-scss-v4

  2. Which created a file called go.mod which includes this:

module github.com/gohugoio/hugo-bootstrap-scss-v4

go 1.14
  1. Included in my directory structure is:
    assets > scss > bootstrap

  2. I am running Hugo version 0.69.2/extended and Go version 1.14.2.

When I run the server, I get an error like this:

Error: Error building site: TOCSS: failed to transform "scss/main.scss" (text/x-scss): SCSS processing failed: file "...assets/scss/bootstrap-includes.scss", line 2, col 1: File to import not found or unreadable: bootstrap/functions.

bootstrap/functions is, of course, the first of many Bootstrap SCSS files I am attempting to import.

I have to be missing something obvious…