GithubHelp home page GithubHelp logo

Comments (3)

jbrodriguez avatar jbrodriguez commented on July 4, 2024

hi @adcgn , it should work if you invoke hugulp build.

It should create your site under /public, with the asset pipeline ran.

Let me know if that's not what's happening in your case

from hugulp.

little-big-co avatar little-big-co commented on July 4, 2024

Hi @jbrodriguez , yes, the build results in output in the /public directory. However, it does not use the baseURL specified in the config.toml. It still uses the localhost:3000 that is used with the hugulp watch command. I'd add a gulp task afterward to copy everything from the /public directory to the server. But that does not work since all links refer to localhost rather than the production URL.

The asset pipeline works great. I have some missing semicolons in the JS files which result in some warnings but no errors. The JS is working on localhost, so I don't think that causes the issue, does it?

Where does hugulp take the baseURL from if invoked with hugulp build?

I also see all the verbose output from hugo and guess that hugo is invoked with all the parameters that are used for development aka the hugulp watch command. It seems to me that this is always the case. I am not that familiar with gulp so that I can check and find the reason for that behaviour myself.

It doesn't matter whether I run hugulp watch or hugulp build. After all, it uses always the localhost:3000 as baseURL.

from hugulp.

jbrodriguez avatar jbrodriguez commented on July 4, 2024

you're definitely right @adcgn, thanks for bringing this up !

hugulp build is currently still using baseUrl.

I'll fix this today or tomorrow at the latest !

from hugulp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.