{"id":19515715,"url":"https://github.com/cyberdex/webpack-typescript-boilerplate","last_synced_at":"2025-04-26T06:30:58.155Z","repository":{"id":57409699,"uuid":"254581827","full_name":"CyberDex/webpack-typescript-boilerplate","owner":"CyberDex","description":"Webpack config for comfortable coding on typescript","archived":false,"fork":false,"pushed_at":"2021-01-14T10:41:59.000Z","size":232,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T05:06:14.439Z","etag":null,"topics":[],"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/CyberDex.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":"2020-04-10T08:20:52.000Z","updated_at":"2023-05-20T15:59:20.000Z","dependencies_parsed_at":"2022-08-24T20:00:13.279Z","dependency_job_id":null,"html_url":"https://github.com/CyberDex/webpack-typescript-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberDex%2Fwebpack-typescript-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberDex%2Fwebpack-typescript-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberDex%2Fwebpack-typescript-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberDex%2Fwebpack-typescript-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CyberDex","download_url":"https://codeload.github.com/CyberDex/webpack-typescript-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250943964,"owners_count":21511665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-10T23:42:49.421Z","updated_at":"2025-04-26T06:30:56.424Z","avatar_url":"https://github.com/CyberDex.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack typescript boilerplate\u003c/h1\u003e\u003c/td\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/webpack-typescript-boilerplate\"\u003e\n    \u003cimg alt=\"NPM Status\" src=\"https://img.shields.io/npm/v/webpack-typescript-boilerplate.svg?style=for-the-badge\"\u003e\u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/dt/webpack-typescript-boilerplate?style=for-the-badge\"\u003e\n\u003c/a\u003e\n\n## 1. Install:\n\n```\nnpm i webpack-typescript-boilerplate -D\n```\n\n## 2. Copy config file from module:\n\n```\ncp node_modules/webpack-typescript-boilerplate/setup/webpack.config.js ./\n```\n\n## 3. Change config inside copied file according to these values:\n\n-   `entryPoints` - an array of typescript files to bundle separately\n-   `sourceFolder` - folder for `awesome-typescript-loader` to include\n-   `assetsFolder` - folder with all additional files (pictures, sounds, configs etc.) witch should be included to release build\n-   `HTMLTemplate` - main app index.html file template\n-   `templateParameters` - variables that you will use inside html file like this: `\u003ctitle\u003e\u003c%= title %\u003e\u003c/title\u003e`\n-   `https` - run DevServer with https (by default it's off)\n-   `port` - port number for local server (by default it will be 8080)\n-   `analyze` - add `webpack-bundle-analyzer plugin`\n\n## 4. Put following values to `scripts` block of your package.json\n\n```\n\"dev\": \"cross-env NODE_ENV=development webpack-dev-server\",\n\"build\": \"cross-env NODE_ENV=production webpack\"\n```\n\n## 5. Use it:\n\n#### Local server (https://localhost:8080)\n\n```\nnpm run dev\n```\n\n#### Production build\n\n```\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberdex%2Fwebpack-typescript-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyberdex%2Fwebpack-typescript-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberdex%2Fwebpack-typescript-boilerplate/lists"}