Skip to content

Rollup, Babel configuration to deploy ES2015+ via <script type="module"> with legacy browser fallback support via <script nomodule>

Notifications You must be signed in to change notification settings

ralscha/rollup-two-bundle-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rollup Babel Two Bundle Build

Rollup and Babel configuration and build script to deploy ES2015+ code to production (via <script type="module">) with legacy browser fallback support via <script nomodule>.

This starter app is an implementation of techniques described in Philip Walton's blog post Deploying ES2015+ Code in Production Today and Jason Miller's blog post Modern Script Loading

Usage

To view the site locally, run the following command:

npm run watch

This will build all the source files, watch for changes, and serve them from http://localhost:5000.

To build the source files without watching for changes or starting a local server, run:

npm run build

Production build

To generate a minified build start a production build with:

npm run dist

About

Rollup, Babel configuration to deploy ES2015+ via <script type="module"> with legacy browser fallback support via <script nomodule>

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published