Hugo tocss. use --logLevel info Start building sites … hugo v0.
Hugo tocss The user running hugo must have read and execute permissions on this program. scss" (text/x-scss): this feature is not available in your current Hugo version Do I need to install additional software on my server? Oct 27, 2020 · I use kross-hugo theme. 0 and later. 88. ToCSS | resources. Minify }} Jan 1, 2024 · ERROR TOCSS-DART: failed to transform “scss/critical. I didn’t change any settings other than modifying some content. git. ToCSS, or rather it is renamed. deb Recently I switched to using Hugo Pipes and got this message: error: failed to transform resource: TOCSS: failed to transform "sass/main. ERROR deprecated: . 1. use --logLevel info Start building sites … hugo v0. 140. Errors occur if any scss file edited Sep 9, 2024 · My project causes me this issue : WARN deprecated: resources. html: {{- $styles := resources. **_ I maybe missing something in the docs (like a flag ? / brain fart?) Any help would be appreciated! _** I’ve Dec 17, 2024 · The documentation about css. 128. TargetPath string // Hugo automatically adds the entry directories (where the main. 6. A quick search of over 20,000 topics will often answer your question. scss” (text/x-scss): this feature is not available in your current Hugo version… I read all the blogs and I have the extended version (I think): $ hugo version Hugo Static Site Generator v0. 1 libsass: 3. Aug 26, 2020 · Suddenly having issues with styles not reloading on change. 1+extended darwin/amd64 BuildDate=unknown I do not know what else to do other than use Gulp to build my assets which I am trying to avoid. Page scoped resources, see the page resources section. 124. Code compiles and runs just fine on ubuntu. Jul 25, 2021 · I’m trying to start with hugo, and it seems cool. Hugo Pipes is Hugo's asset processing set of functions. Fingerprinting and SRI hashing Cryptographically hash the content of the given resource. scss files update. Please be sure to read about requesting help before asking your first question. My early experimentation has yielded no good results. Oct 27, 2018 · I’m running Hugo on a Ubuntu 16. Nov 6, 2024 · The extended releases of Hugo (those with _extended_ in their names!) come bundled with LibSass, a Sass-to-CSS transpiler wrapper. 5 postcss --version 8. So, before anything else, make sure you are running one of these “extended” versions of Hugo. 635µs INFO build: running step assemble duration 560 Nov 24, 2024 · starting the server throws the following errors: WARN deprecated: resources. scss to the assets folder. hugo generates HTMLs in output fiolder, and stops. The following code has been added to my head Aug 17, 2025 · A file within the assets directory, or within any directory mounted to the assets directory. I’ve also tried different variations of the import (e. 69. html line 25. Sep 8, 2025 · type Options struct { // Hugo, will by default, just replace the extension of the source // to . remote resource A file on a remote server, accessible via HTTP or HTTPS. It is very useful to have two files to develop. Syntax resources. 4-f11bca5fec2ebb3a02727fb2a5cfb08da96fd9df+extended darwin/arm64 BuildDate=2023-11 Mar 22, 2024 · hugo v0. 1 and hugo Hugo Static Site Generator v0. I read that Hugo is using libsass but of course this is now outdated so was looking to set up dartsass going forward. You may also find the answers you search for Jun 25, 2024 · Release v0. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug. 1+extended linux/amd64 BuildDate=unknown INFO copy static: syncing static files to / INFO build: running step process duration 786. Concatenating assets Bundle any number of assets into one resource. May 28, 2020 · Is your Hugo site not deploying on Netlify due to “Error 255”? First make sure you’re using the new image build selection and try setting the HUGO_VERSION to the one you’re using locally. Feb 10, 2023 · If one is using vanilla CSS with @import, what is the recommended way to handle that with Hugo — and without PostCSS, if that’s possible? After seeing this week’s WebKit announcement about CSS nesting for selected browsers, I’m thinking ahead about how to convert a Sass multi-file workflow to totally vanilla CSS. 4. 15. ToCSS documentation/themes/beastie/layouts/partials/site-head. Please see specific details below. However, I’ve already hit a hurdle. [~/git/hugo_site]: hugo -D -v WARN --verbose was deprecated in Hugo v0. First (use . scss files via a single SCSS file (app. That is not the case. For more info about the TailwindCSS 4 integration, see this repo. I am not sure what I am doing wrong. Defer template func and the dramatically impr Sep 7, 2023 · I’m not sure if this is a bootstrap issue or hugo, but when my scss files are compiled it seems to remove some background properties for bootstrap’s . Transpile Sass to CSS using the LibSass transpiler included in Hugo’s extended edition, or install Dart Sass to use the latest features of the Sass language. Here’s how I’m building the stylesheet in /layouts/styles. 53/extended darwin/amd64 BuildDate: unknown and I did the “?npm install -g Jul 3, 2024 · No… see Basic usage | Hugo for details. 1-2f89169baa87a9db4 May 8, 2024 · In v0. 1 Thanks! Mar 5, 2025 · Process the given resource with PostCSS using any PostCSS plugin. It comes with a number of new features - and of course also some deprecations. 3” Repo git@github. JavaScript building Bundle, transpile, tree shake, code split, and minify JavaScript Dec 26, 2022 · Check your Hugo installation; you need the extended version to build SCSS/SASS with transpiler set to 'libsass'. I’m using - or used - this in my code for Mastodon comments. 43) and found that toCSS is setting the include path as the sass file directory so currently there isn’t a way to set the include path. Get resources Mar 12, 2025 · I am having some issues running hugo for development on my windows machine. Can someone point out where I’ve gone wrong? pointyfar October 30, 2020, 9:55am 2 Have a read here: Hugo modules for "dummies" And have a look at my example modules: The main Aug 17, 2025 · (string) A regular expression matching file (s) relative to one of the virtual component directories in Hugo, typically assets/. I have hugo installed via brew with --HEAD. , npm install postcss-cli without the -g flag. Oct 19, 2024 · git grep resources. scss” (text/x-scss): got unexpected EOF when executing “sass”. Sass mentions the way to compile my scss files but with this option I get this message: ERROR TOCSS-DART: failed to transform “/scss/cbtv. Sep 12, 2024 · I’ve been using hugo modules in my theme for a while now to bring down my themes CSS framework (bulma). As you see, I already use Feb 21, 2024 · What version of Hugo are you using (hugo version)? $ hugo version hugo v0. Sass instead) and . The snippet mention above is in layouts/partials/head. 6 running hugo server fails with this error: Aug 22, 2018 · Hi, I’m at my wits end. Resource Alias toCSS Mar 3, 2023 · We updated the Hugo snap package this morning to fix the internal packaging problem related to Embedded Dart Sass. ToCSS [OPTIONS] RESOURCE Returns resource. css". css, e. Mar 5, 2025 · Hugo Pipes Last updated: March 5, 2025 : content: Consolidate configuration documentation (b6cae5cbc) Improve this page May 8, 2025 · While upgrading my Arch / Manjaro system I got Hugo upgraded to version 0. New replies are no longer allowed. I’ve had no Sep 7, 2024 · every bit of help is appreciated. I get the this error: … failed to transform resource: TOCSS: failed to transform “scss/main. Nov 17, 2023 · I am getting following errors. scss" becomes "scss/main. This is what I did: cd themes g… Transpile Sass to CSS using the LibSass transpiler included in Hugo’s extended edition, or install Dart Sass to use the latest features of the Sass language. . toml Start building sites … hugo v0. 3. 77. btn-close class. css. "scss/main. For . Sass has two forms of syntax: SCSS and indented. 0 (also 0. Thanks for brining this to our attention. Also notable is the new templates. 04. However, when I make changes to any of the scss files, the server prints Change detected, rebuilding site but doesn’t re-compile the css file. I have two CSS files: header. Mar 17, 2022 · Hi there, I have installed Hugo extended version in my ubuntu using Homebrew $ hugo version hugo v0. deb) in kubernetes and working fine. One of the features going away is resources. Hugo supports both. scss" (text/x-scss): this feature is not available in your current Hugo version Total in 10 ms Jan 7, 2025 · Hi, @andremoreno. Use the latest features of the Sass language by installing Dart Sass in your development and production environments. Netlify App is the site. I’ve tried multiple themes and it seems every theme I’ve tried except for the one from the quickstart guide seems to give me issues. scss, modern-normalize. 125. 0. Run the hugo version command, at the command line, and check for “extended” in the version string, shown in the Mar 6, 2025 · Transpiles Sass to CSS. css, etc. I have Hugo Extended version hugo v0. 114. Default instead). Hugo's resources. But for Google, it will be fine if Hugo combines two files into one. 89. 53, different errors appearing on . 2/extended darwin/amd64 BuildDate: unknown I’m quite perplexed as this was working a couple days ago. Mar 9, 2025 · A quick reference guide to Hugo's functions, grouped by namespace. S Aug 29, 2018 · ERROR 2018/08/29 10:07:25 error: failed to transform resource: TOCSS: failed to transform "scss/style. 2_Linux-64bit. 1-3f8434a62fc91a50f4e5bd43a4435d2d301844ff+extended linux/amd64 BuildDate=2024-02-21T08:17:45Z VendorInfo=gohugoio Does this issue reproduce with the latest release? Yes After v0. ). Asset minification Minify a given resource. 111. Get "styles/main. In 2020, the Sass team deprecated LibSass in favor of Dart Sass. 5 server, and installed the latest release with sudo dpkg -i hugo_0. EDIT: This documentation is a bit unclear, perhaps implying that you must globally install postcss-cli unless you’re running the snap executable. Aug 22, 2025 · Processes the given resource with PostCSS using any PostCSS plugin. But now bulma is all about the @use and @forward so I installed dart sass and am attempting to migrate but I’ve hit a snag in that no matter Jan 15, 2019 · Running Hugo 0. If you have been using Embedded Dart Sass 1 with Mar 26, 2020 · If you are using the Hugo Snap package, PostCSS and plugin (s) need to be installed locally within your Hugo site directory, e. com:Appdy/site. (string) A regular expression matching the keys in the resource cache that should be expired when source changes. I cannot find the deprecated Transpile Sass to CSS. I tried to play around with the HUGO_VERSION build variable, but couldn’t find a setting that makes it use the Sep 21, 2020 · So, I have a feeling that I’m doing something wrong. Have you tried using the Netlify configuration variable HUGO_VERSION to set the specific version you want to use? If not, would you please give that a try? Feb 9, 2024 · Error: error building site: TOCSS-DART: failed to transform “sass/main. They all fails for the same reason. Oct 5, 2022 · I made some content updates to our site, and the build failed because it used regular Hugo instead of the extended version, which used to be the default before (I need support for SASS). Hugo Static Site Generator v0. Aliases, if any, appear in parentheses to the right of the function name. Thank you all in advance for your time. Jan 14, 2025 · I just tried to update hugo to 0. g. 0-41C6C52E linux/amd64 BuildDa… Sep 11, 2024 · hugo server -D Watching for changes in D:\gitlab\hugo\myBlog {archetypes,assets,content,data,i18n,layouts,static,themes} Watching for config changes in D:\gitlab\hugo\myBlog\hugo. Aug 3, 2020 · Releases · gohugoio/hugo The world’s fastest framework for building websites. Use css. scss lives) // for project and Aug 17, 2025 · Hugo’s forum is an active community of users and developers who answer questions, share knowledge, and provide examples. Aug 28, 2018 · I just started implementing the ToCSS pipeline and it works great on the first compile run with hugo server and just plain ol’ hugo. Can Hugo do it? Jun 20, 2020 · I’ve tried running hugo server with various parameters, such as hugo server -w -v -e --forceSyncStatic, but no matter what parameters I try with, then the page doesn’t refresh on scss changes, and even if I manually refresh then the css doesn’t update before I stop and start the hugo server command again. It doesn’t run embedded server: you don’t need embedded server when you deploy it to Netlify. ToCSS (use css. css and footer. I am using hugo version 0. But when try to redeploy with out any change also but got error like below. 0 · gohugoio/hugo This release brings TailwindCSS v4 (alpha) support. scss" | resources. I tried downloading extended binary for linux-64bit, linux-amd64, and withdeploy (not sure what withdeploy means?). 2 using hugo-book theme and the server failed to start because of two deprecated features: resources. Apr 19, 2020 · This topic was automatically closed 2 days after the last reply. I’m using Hugo Pipes to build styles, and importing . 1 sass: 3. 134. scss). ByType resources. scss" (text/x-scss): this feature is not available in your current Hugo version Oct 30, 2024 · WARN deprecated: resources. ToCSS has been deprecated #2167 Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. 120. 123. However, when I try to run hugo server -D (as per the the quick start guide), it fails, giving me this: Start building sites … hugo v0. 49. Dart Sass The extended version of Hugo includes LibSass to transpile Sass to CSS. /modern-normalize, modern-normalize. gl/YMrWcn for more information Feb 20, 2023 · I have deployed Hugo 0. I can’t tell what I’m doing differently this time! sassc --version sassc: 3. 1) we are getting two build failures for our docs: Apr 20, 2020 · Thanks for getting in touch, but it feels like this is a question that would be better suited to the Hugo Discussion Forum. PS C:\Users\jorda\Documents… Feb 17, 2021 · I’m using the docuapi theme, v1. We prefer to use GitHub issues only for bugs and enhancements. Jul 9, 2018 · I quick looked the hugo source (0. "styles/main. css" will create // a Resource with that as a base for RelPermalink etc. 0-DEV/extended darwin/amd64 BuildDate: unknown GOOS=“darwin” GOARCH=“amd64” GOVERSION=“go1. This worked great under libsass and the older version that I was using as I could just mount the sass folder in my assets path and @import away. Installation overview Dart Sass is compatible with Hugo v0. 4 ( Linux-64. ToCSS was deprecated in Hugo v0. Sites. 03 here so please let me know if something is known to not work here… Aug 24, 2022 · Global resources go in the assets directory, not the static directory. . 0 and will be removed in a future release. 1-5BC54738+extended linux/amd64 BuildDate=2021-09-04T09:39:19Z VendorInfo=gohugoio I tried using latest CSS fea… Mar 25, 2019 · $ hugo server error: failed to transform resource: TOCSS: failed to transform "scss/main. Sass instead. Apr 24, 2020 · (and I’ve put _variables. scss in /assets/ and in /assets/scss/ and in /assets/sass/ and I can’t get it to be anything but Nil) Nov 23, 2023 · Hello, I am trying to use this theme. 4 sass2scss: 1. I’ve added a sass folder with main. For global resources, use: resources. : this feature is not available in your current Hugo version, see https://goo. You can // control this by setting this, e. If you want to try it out (I have): It will be promoted to the “stable” channel when we roll an official release, likely in the next few days. 86. Sep 9, 2025 · Hugo’s extended and extended/deploy editions include LibSass to transpile Sass to CSS. 0-629f84e8edfb0b1b743c3942cd039da1d99812b0 darwin/arm64 BuildDate=2024-03-16T15:44:32Z VendorInfo=gohugoio If you were running the extended version, the Oct 29, 2020 · I’m new to modules, so I can’t tell if I’m going about this the right way or not. - gohugoio/hugo Oct 6, 2021 · Here is my output when running ‘hugo version’: hugo v0. htm… Aug 23, 2019 · Hello. Get a resource In order to process an asset with Hugo Pipes, it must be retrieved as a resource. Jan 31, 2024 · Hi! I’m new to Hugo and looking to develop a site from scratch (not using a prebuilt theme) to learn the ins and outs of Hugo. upitvhtcfsgparqwimaqgupknpbxsvqgnyxgzscmufgzjibfgysvljegxwxopjqxdapzhmazh