Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 492 Bytes

File metadata and controls

24 lines (20 loc) · 492 Bytes

Lesson: Modularization with RollupJs

Try it out

http://rollupjs.org

Todo

  1. Install rollup as dev dependency
  2. Restructure app into modules (see below)
  3. Generate bundle.js with rollup
  4. Replace app.js with bundle.js in index.html
  5. Add script to package.json

Recommended folder structure

- src
    - app.js
    - todo-element.js
    - todo-store.js
    - todo-app-component.js
- bundle.js // generated by rollup
- index.html
- styles.css