Skip to content

kcmr/broccoli-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bundle web components made with LitElement using Rollup, Babel and Broccoli

⚠️ This is an experimental project for learning purposes.

Challenges

  • Generate a bundle that can be consumed by legacy browsers.
  • Include in the bundle the required transpiled dependencies (node_modules).
  • Minify the output.
  • Include sourcemaps.
  • Generate two bundles for legacy and modern browsers and use <script type="module"> and <script nomodule>.
  • Allow to import .css files in components.
  • Support dynamic imports.
  • Use env variables to serve or build with Broccoli to avoid using BrowserSync when building.

Resources and inspiration

About

Transpile LitElement with Broccoli, Rollup and Babel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published