Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ralscha/rollup-two-bundle-starter

Rollup, Babel configuration to deploy ES2015+ via <script type="module"> with legacy browser fallback support via <script nomodule>
https://github.com/ralscha/rollup-two-bundle-starter

babel es2015 npm-scripts rollup

Last synced: 6 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# Rollup Babel Two Bundle Build

Rollup and Babel configuration and build script to deploy ES2015+ code to production (via ``)
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](https://philipwalton.com/articles/deploying-es2015-code-in-production-today/) and Jason Miller's blog post [Modern Script Loading](https://jasonformat.com/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`](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
```