{"id":13797627,"url":"https://github.com/web-padawan/polymer3-webpack-starter","last_synced_at":"2025-05-13T04:32:03.075Z","repository":{"id":89746539,"uuid":"135628479","full_name":"web-padawan/polymer3-webpack-starter","owner":"web-padawan","description":"Polymer 3 starter built with Vaadin components and Vaadin.Router library, using webpack and modern tools","archived":true,"fork":false,"pushed_at":"2020-06-30T10:02:20.000Z","size":1625,"stargazers_count":102,"open_issues_count":0,"forks_count":21,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-18T12:46:32.519Z","etag":null,"topics":["pwa-boilerplate","pwa-example","starter-kit","web-components","webcomponents","webpack-boilerplate"],"latest_commit_sha":null,"homepage":"https://polymer3-webpack-starter.herokuapp.com","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/web-padawan.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-05-31T19:48:46.000Z","updated_at":"2024-06-07T08:25:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"685eb0c6-f5c2-4bcc-a14e-f1a68bb1ee0f","html_url":"https://github.com/web-padawan/polymer3-webpack-starter","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/web-padawan%2Fpolymer3-webpack-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-padawan%2Fpolymer3-webpack-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-padawan%2Fpolymer3-webpack-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-padawan%2Fpolymer3-webpack-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web-padawan","download_url":"https://codeload.github.com/web-padawan/polymer3-webpack-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253876851,"owners_count":21977629,"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":["pwa-boilerplate","pwa-example","starter-kit","web-components","webcomponents","webpack-boilerplate"],"created_at":"2024-08-04T00:00:25.456Z","updated_at":"2025-05-13T04:32:01.860Z","avatar_url":"https://github.com/web-padawan.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"[![Known Vulnerabilities](https://snyk.io/test/github/web-padawan/polymer3-webpack-starter/badge.svg)](https://snyk.io/test/github/web-padawan/polymer3-webpack-starter)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Lighthouse score: 91/100](https://lighthouse-badge.appspot.com/?score=91\u0026compact\u0026category=PWA)](https://github.com/ebidel/lighthouse-badge)\n\n# Polymer 3 Webpack Starter\n\nThis is an example project demonstrating how you can build a frontend part of the JavaScript\napplication using [Vaadin components](https://vaadin.com/components) and [Vaadin Router](https://github.com/vaadin/vaadin-router) library, and leverage the benefits of the modern tools.\n\n[Lumo version ↗](https://polymer3-webpack-starter.herokuapp.com/)\n|\n[Material version ↗](https://polymer3-material-starter.herokuapp.com/)\n\n## Features\n\n- Latest Polymer 3 and up-to-date [webcomponentsjs](https://github.com/webcomponents/webcomponentsjs) polyfill\n- UI built using latest [Vaadin components](https://vaadin.com/components) shipped as ES modules\n- Application with two different themes: [Lumo](https://github.com/vaadin/vaadin-lumo-styles) and [Material](https://github.com/vaadin/vaadin-material-styles)\n- [Vaadin Router](https://vaadin.com/router) configured for code splitting and lazy loading\n- [webpack 4](https://github.com/webpack/webpack) for easy development and production bundling\n- Up-to-date [Babel 7](https://github.com/babel/babel) verified to work nice with Custom Elements\n- Modern build for evergreen browsers using [BabelMultiTargetPlugin](https://github.com/DanielSchaffer/webpack-babel-multi-target-plugin)\n- Minification of JavaScript using [Terser](https://github.com/terser-js/terser) supporting ES2015+\n- Minification of HTML and CSS in [tagged template literals](https://github.com/cfware/babel-plugin-template-html-minifier)\n- Automatic service worker generation using [Workbox](https://github.com/GoogleChrome/workbox)\n- Automatic [bundle analysis](https://github.com/webpack-contrib/webpack-bundle-analyzer) and report generation\n- Web server using [express](https://github.com/expressjs/express) and [History API](https://github.com/bripkens/connect-history-api-fallback) middleware\n- Compressing static files for production using [gzip](https://github.com/webpack-contrib/compression-webpack-plugin) and [Brotli](https://github.com/mynameiswhm/brotli-webpack-plugin) algorithm\n- Serving compressed files using [express-static-gzip](https://github.com/tkoenig89/express-static-gzip) middleware\n\n## Install dependencies\n\n```sh\nnpm i\n```\n\n## Start the development server\n\nStart `webpack-dev-server` on localhost `http://127.0.0.1:3000`:\n\n```sh\nnpm run dev\n```\n\n## Lint JS\n\n```sh\nnpm run lint:js\n```\n\n## Lint CSS\n\n```sh\nnpm run lint:css\n```\n\n## Lint JS and CSS\n\n```sh\nnpm run lint\n```\n\n\n## Build\n\nRun production build:\n\n```sh\nnpm run build\n```\n\nServe the built output on localhost `http://127.0.0.1:8000`:\n\n```sh\nnpm start\n```\n\n## Visualize build output\n\nRun production build and start HTTP server to show bundle report:\n\n```sh\nnpm run build:analyze\n```\n\n## Material version\n\nCheck out [material](https://github.com/web-padawan/polymer3-webpack-starter/tree/material) branch for [Material version](https://polymer3-material-starter.herokuapp.com/) of the starter, and a [full diff](https://github.com/web-padawan/polymer3-webpack-starter/compare/material) of changes.\n\n## Known limitations\n\n- Using `import.meta` suggested by Polymer docs is not supported out of the box, see [webpack/webpack#6719](https://github.com/webpack/webpack/issues/6719).\n  Support can be added with [babel-plugin-bundled-import-meta](https://github.com/cfware/babel-plugin-bundled-import-meta) or\n  webpack loader [import-meta-url-loader](https://github.com/open-wc/open-wc/blob/master/packages/webpack/loaders/import-meta-url-loader.js)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-padawan%2Fpolymer3-webpack-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-padawan%2Fpolymer3-webpack-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-padawan%2Fpolymer3-webpack-starter/lists"}