{"id":13722337,"url":"https://github.com/brandonxiang/svelte-webpack-mpa","last_synced_at":"2025-03-19T13:31:49.326Z","repository":{"id":87907068,"uuid":"196667225","full_name":"brandonxiang/svelte-webpack-mpa","owner":"brandonxiang","description":"A template to create multi-page application powered by webpack","archived":false,"fork":false,"pushed_at":"2023-03-21T16:28:25.000Z","size":302,"stargazers_count":23,"open_issues_count":5,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T19:04:58.785Z","etag":null,"topics":["boilerplate-template","svelte","svelte-v3","sveltejs","template","webpack"],"latest_commit_sha":null,"homepage":"https://github.com/brandonxiang/svelte-webpack-template","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brandonxiang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-13T02:03:24.000Z","updated_at":"2023-12-12T17:49:43.000Z","dependencies_parsed_at":"2024-01-06T01:07:39.624Z","dependency_job_id":"6bc35784-96ed-4a5c-9a03-359701413676","html_url":"https://github.com/brandonxiang/svelte-webpack-mpa","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonxiang%2Fsvelte-webpack-mpa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonxiang%2Fsvelte-webpack-mpa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonxiang%2Fsvelte-webpack-mpa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonxiang%2Fsvelte-webpack-mpa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandonxiang","download_url":"https://codeload.github.com/brandonxiang/svelte-webpack-mpa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244434899,"owners_count":20452276,"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":["boilerplate-template","svelte","svelte-v3","sveltejs","template","webpack"],"created_at":"2024-08-03T01:01:27.579Z","updated_at":"2025-03-19T13:31:49.088Z","avatar_url":"https://github.com/brandonxiang.png","language":"JavaScript","funding_links":[],"categories":["templates"],"sub_categories":["editor tools"],"readme":"# svelte-webpack-mpa\n\n\u003ca href=\"https://github.com/brandonxiang/svelte-webpack-template/blob/master/LICENSE\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/brandonxiang/svelte-webpack-template\" alt=\"license\"\u003e\n\u003c/a\u003e\n\n## Boilerplate\n\nThis template is built for multi-page application(MPA). If you want to create a new project with SPA, see [template-webpack](https://github.com/sveltejs/template-webpack) or [webpack_svelte](https://github.com/theartkod/webpack_svelte).\n\n## Usage\n\nTo create a new project based on this template using degit:\n\n```shell\nnpx degit brandonxiang/svelte-webpack-mpa svelte-app\ncd svelte-app\nyarn\n# or\nnpm i\n```\n\nYour static files can be placed into `public` folder.\n\n## Development\n\n```shell\nyarn dev\n# or\nnpm run dev\n```\n\n`http://localhost:9000/page1.html` is the first page. `http://localhost:9000/page2.html` is the second page.\n\n## Build\n\nBecause of the extremely small bundle size of Svelte App, the common chunk for multi-pages is unneccessary to build. Each page has its own js bundle, or you can change webpack config by yourself. \n\n```shell\nyarn build\n# or\nnpm run build\n```\n\n## Analyze\n\n```shell\nyarn analyze\n# or\nnpm run analyze\n```\n\n## Preprocess\n\nPreprocess is the most interesting API of svelte. Therefore, [svelte-preprocess](https://github.com/kaisermann/svelte-preprocess) is included in the project. Postcss is essential for autoprefixer. Other style preprocessers, like sass, could be setted by yourself. \n\n## How to integate with vscode?\n\n[OFFICAL INTEGRATIONS](https://github.com/sveltejs/eslint-plugin-svelte3/blob/master/INTEGRATIONS.md)\n\n## Changelog\n\n- babel is not essential. So we remove babel-loader\n\n## LICENSE\n\n[MIT](./LICENSE) @brandonxiang","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonxiang%2Fsvelte-webpack-mpa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonxiang%2Fsvelte-webpack-mpa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonxiang%2Fsvelte-webpack-mpa/lists"}