Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 464 Bytes

File metadata and controls

23 lines (19 loc) · 464 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
- bundle.js // generated by rollup
- index.html
- styles.css