{"repo":"andrewlevada/webpack-lit-template","free":true,"listed":false,"github":"https://github.com/andrewlevada/webpack-lit-template","clone":"git clone https://github.com/andrewlevada/webpack-lit-template.git","description":"Starter template of multipage application on Lit build with Webpack","language":"JavaScript","stars":10,"topics":[],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Lit Webpack Project Starter This project can be used as starting point for creating a multipage application with Lit. It also uses Typescript, Webpack and SCSS. Fell free to clone it and start your project with bundle build configuration what works like a charm out of the box. Structure Folders and files in this project: 1. /src/pages - all pages are stored here as top level components (it's recommended to add postfix page to every component's name in this folder). Webpack will generate html file for every mapped (read later about this) file from this folder and place page component in body. 2. /src/pages/base.html - base html file used for page generation (add and tags here) 3. /src/components - all other components in the project (not pages) 4. /src/services - place for logic (requests to api, algorithms, etc.) 5. /src/utils - place for useful function that can be used anywhere in project 6. /src/assets/styles - global styles (theming, layouts, mixins, etc.) - it's recommended to split global styles in different files here because tree-shaking will only remove entire files (not parts of files) 7. /src/assets/to-root - on build contents from this folder are copied to the root of the build (useful for files like robots.txt and favicon.ico ) 8. /src/global.ts - contains global variables, styles for all components/pages and globally executed scripts, for example analytics 9. /router.js - this file is used to map urls to top level components (pages). Don't forget to change it ea","default_branch":null,"files":null,"tree":[],"storefront":"/r/andrewlevada","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/andrewlevada/webpack-lit-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}