Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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>
- Host: GitHub
- URL: https://github.com/ralscha/rollup-two-bundle-starter
- Owner: ralscha
- Created: 2017-09-18T17:26:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-30T10:45:06.000Z (5 months ago)
- Last Synced: 2024-07-02T06:02:20.763Z (5 months ago)
- Topics: babel, es2015, npm-scripts, rollup
- Language: JavaScript
- Homepage:
- Size: 101 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- 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
```