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: 3 months ago
JSON representation
Rollup, Babel configuration to deploy ES2015+ via <script type="module"> with legacy browser fallback support via <script nomodule>
- Host: GitHub
- URL: https://github.com/ralscha/rollup-two-bundle-starter
- Owner: ralscha
- Created: 2017-09-18T17:26:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-07T18:04:47.000Z (4 months ago)
- Last Synced: 2025-04-03T11:36:33.646Z (3 months ago)
- Topics: babel, es2015, npm-scripts, rollup
- Language: JavaScript
- Homepage:
- Size: 64.5 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```