Better Webflow Custom Code Workflows (Typescript, VS Code)

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 38

  • @HeyNoah
    @HeyNoah Год назад +3

    A trick to formatting in Webflow is highlighting all the code you want to format and press "shift + tab"
    Just a little tip 😉 Great video!!

  • @labruda
    @labruda Год назад +1

    I just discovered you recently through the Webflow Conf...your channel is AMAZING.
    This is truly THE BEST tutorial I've seen about CDN

    • @webbae
      @webbae  Год назад

      Glad it was helpful! 🫡

    • @labruda
      @labruda Год назад

      Was my other question deleted? @@webbae

    • @webbae
      @webbae  Год назад

      Hmm I don’t see it. Feel free to pop in the discord and share it there!

  • @kudz
    @kudz 2 года назад +2

    Great video!
    I want to start exploring how to use threejs in webflow and this is a great start. We need more videos like this 👍👍👍

    • @webbae
      @webbae  2 года назад +1

      I took my first look at three.js two days ago. Stay tuned!

  • @JimmyCeeTV
    @JimmyCeeTV Год назад +1

    God damn did I need this kinda Webflow+JS info like months ago! Still great to find it now. Awesome resource 👏

    • @webbae
      @webbae  Год назад +3

      Glad it was helpful. I’ve refined my workflow a bit since making this video. Will try to put out some new info soon.

  • @GrifanoRide
    @GrifanoRide Год назад +1

    I to serve the js code from JSDeliver safe? I mean, I like the idea of serving all my custom code from one place and minified, but is this the real-life method? Are you done this fro clients' projects too?

    • @webbae
      @webbae  Год назад

      Yup! The only difference would be in having jsdelivr grab the code from NPM instead of GitHub. You’ll need an npm account for that and deploy your minified code there, then use jsdelivr in similar way.

  • @GrifanoRide
    @GrifanoRide Год назад +1

    Thanks, Keegan, at least I have an environment to write custom JS. I'm not familiar with Typescript, do you have a video where you explain what TypeScript is and why it helps us with Webflow custom code?

    • @webbae
      @webbae  Год назад

      I don’t have a video on Typescript specifically but you should be able to find lots of content out there. Essentially it allows us to specify types to our JavaScript so we can catch potential bugs at compile time (before publish) rather than run time. It enforces stricter rules and requires a build step so can be difficult at first, but once you get used to it it helps a ton.

  • @seb-astian-design
    @seb-astian-design Год назад +1

    Hi, idk why but my link doesn't get highlighted in the inspector and it's also missing in the source panel. I've done exactly what you've shown.

    • @webbae
      @webbae  Год назад

      Which link are your referencing? Can you send a timestamp in the video for the part you a referring to?

    • @seb-astian-design
      @seb-astian-design Год назад

      @@webbae the codesandbox part 7:00 - I've also used a static sandbox (the orignial branch) and when I open the link with index js in the browser it shows me the code

  • @qamar7
    @qamar7 8 месяцев назад +1

    Hi Web Bae,
    I have used your method to host a file on CDN, I was thinking how to host multiple files for same project? how to modify outfile? can you make a video on that?

    • @webbae
      @webbae  8 месяцев назад +1

      Sure - I’m planning a video on build tools for my JavaScript course in Patreon :) www.patreon.com/webbae

  • @gjb7966
    @gjb7966 2 года назад

    super helpful! been really enjoying your content ⚡🔥

    • @webbae
      @webbae  2 года назад

      Thanks gjb! It seems a lot of us are using Webflow as a jumping off point to learn Javascript!

    • @gjb7966
      @gjb7966 2 года назад +1

      @@webbae i know javascript already but i am always looking for ways to write less code, specially since so much of web development is repetitive, annoying boilerplate :D
      i am still waiting for the tool that will combine the flexibility for writing and managing code of vscode but that will allow me to work more visually when i want to, like webflow does
      framer is also looking interesting in that sense but it’s too early to say

  • @ihsaan7807
    @ihsaan7807 Год назад +1

    Hey Web bae, Alex just added live reload to the finsweet starter template, how would you implement it in this workflow? Thanks.

    • @webbae
      @webbae  Год назад +1

      Hey Ihsaan - the finsweet starter template is great. In general - click the green “use template” button then clone down that repo to your local machine and follow the instructions listed in the readme.

    • @ihsaan7807
      @ihsaan7807 Год назад

      @@webbae Yeah, I like your setup better. I don't use typescript or the other things that come along with it. I'm gna continue with your setup but having that hot reload in there would be soo cool. Thanks anayway!

  • @beamdot3d360
    @beamdot3d360 Год назад

    Hey Keegan, great vid, thank you! I am having an issue I'm hoping you can help me with. When I try to import code from sandbox to webflow, I get a CORB error when I publish the code. Can you explain how I can prevent this?

    • @webbae
      @webbae  Год назад

      CORB? Do you mean CORS perhaps? I need more info on your error.

  • @kudz
    @kudz Год назад +1

    Update:
    If you try to run "build-by-file" it will throw an error because of the "watch:true" option in your builder.ts file. This was an intentional change made to esbuild beyon v0.16.
    You can either remove the "watch:true" option from your builder.ts file or install the last version that works by running "npm install esbuild@v0.16".
    I wanted to figure out how to make it work in v0.17 but it's 1 AM and I'm not ready to read through all that documentation😛

    • @webbae
      @webbae  Год назад

      Thanks Kudzi I'll have a look when I get a moment.

  • @liamlegaillard1918
    @liamlegaillard1918 2 года назад +1

    Why i can't add "serve": "serve" like you at 29:24

    • @webbae
      @webbae  2 года назад

      Are you adding to package.json? Did you install the serve package with npm? DM me a screenshot of your error on twitter.

    • @liamlegaillard1918
      @liamlegaillard1918 2 года назад

      @@webbae My account twitter was hacked ...if you are another social media ?

    • @webbae
      @webbae  2 года назад

      @@liamlegaillard1918 my email is in the about section of my channel.

    • @webbae
      @webbae  2 года назад

      Just looked at your email - you’re missing a comma in your scripts array.