{"id":19553667,"url":"https://github.com/armandsalle/webflow-typescript-webpack","last_synced_at":"2026-03-01T18:31:39.056Z","repository":{"id":47139276,"uuid":"405600635","full_name":"armandsalle/webflow-typescript-webpack","owner":"armandsalle","description":"☀️ Basic TypeScript config with Webpack to let you code while using Webflow 🙌","archived":false,"fork":false,"pushed_at":"2021-10-14T13:38:03.000Z","size":806,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-26T21:33:45.427Z","etag":null,"topics":["prettier-eslint","typescript","webflow","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/armandsalle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-12T09:34:16.000Z","updated_at":"2023-03-20T07:29:59.000Z","dependencies_parsed_at":"2022-09-10T13:01:58.213Z","dependency_job_id":null,"html_url":"https://github.com/armandsalle/webflow-typescript-webpack","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/armandsalle/webflow-typescript-webpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armandsalle%2Fwebflow-typescript-webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armandsalle%2Fwebflow-typescript-webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armandsalle%2Fwebflow-typescript-webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armandsalle%2Fwebflow-typescript-webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/armandsalle","download_url":"https://codeload.github.com/armandsalle/webflow-typescript-webpack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armandsalle%2Fwebflow-typescript-webpack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29978499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["prettier-eslint","typescript","webflow","webpack"],"created_at":"2024-11-11T04:24:16.702Z","updated_at":"2026-03-01T18:31:39.030Z","avatar_url":"https://github.com/armandsalle.png","language":"JavaScript","readme":"# webflow-webpack\n\nThis is a basic setup with Webpack and Typescript that you can use for your Webflow website.\n`jQuery` is already installed and declared as an external dependency.\nBy default, Webpack bundles multiple files for better performances (one file by page to avoid heavy JS load on a page that doesn't need it), but you can change this in the `webpack.config.js`.\nI'm using `Netlify` to build and host my code because it's easy to use, free, and has serverless functions out of the box. Feel free to use your favorite CDN.\n\n## How to use with Webflow\n\n⚠️ if you are using Brave as a web browser or an ad blocker, you will need to disable it. Else it can block the fetching of the js files. ⚠️\n\nIf you are developing the site and coding at the same time, you can just add a script tag on pages that need your code\n\n```html\n\u003cscript src=\"http://localhost:9000/index.js\"\u003e\u003c/script\u003e\n```\n\nBut if you only code and don't have access to the project you can use this code to check if there is a local dev server running on your machine and switch between production code hosted on `Netlify` or not. This code is not due to be used in production.\n\n```html\n\u003cscript\u003e\n  const LOCALHOST_URL = 'http://localhost:9000/index.js'\n  const PROD_URL = 'https://YOUR_DOMAIN.netlify.app/index.js'\n\n  const s = document.createElement('script')\n\n  fetch(LOCALHOST_URL, {\n    mode: 'no-cors',\n    headers: {\n      'Access-Control-Allow-Origin': '*',\n    },\n  })\n    .then(() =\u003e {\n      s.src = LOCALHOST_URL\n    })\n    .catch((e) =\u003e {\n      s.src = PROD_URL\n      console.error(e)\n    })\n    .finally(() =\u003e {\n      document.body.appendChild(s)\n    })\n\u003c/script\u003e\n```\n\nFor a production-ready code, add a script tag with your production URL.\n\n```html\n\u003cscript src=\"https://YOUR_DOMAIN.netlify.app/index.js\"\u003e\u003c/script\u003e\n```\n\n## Building and running on localhost\n\nThis project is using `yarn`.\n\nFirst, install dependencies:\n\n```sh\nyarn\n```\n\nTo launch a local dev server:\n\n```sh\nyarn dev\n```\n\nTo create a production build:\n\n```sh\nyarn build\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmandsalle%2Fwebflow-typescript-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmandsalle%2Fwebflow-typescript-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmandsalle%2Fwebflow-typescript-webpack/lists"}