https://github.com/tangrams/webpack-tangram-boilerplate
A minimal example of bundling Tangram with Webpack, but without Babel or React.
https://github.com/tangrams/webpack-tangram-boilerplate
Last synced: about 1 year ago
JSON representation
A minimal example of bundling Tangram with Webpack, but without Babel or React.
- Host: GitHub
- URL: https://github.com/tangrams/webpack-tangram-boilerplate
- Owner: tangrams
- License: mit
- Created: 2017-11-06T23:08:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T02:21:06.000Z (over 3 years ago)
- Last Synced: 2025-06-24T18:15:01.359Z (about 1 year ago)
- Language: JavaScript
- Size: 725 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack-tangram-boilerplate
This is a minimal example of bundling Tangram with Webpack, but without Babel or React, to illustrate the process by which Webpack module bundling works with Tangram in an otherwise-vanilla JS environment. (Compare: https://github.com/tangrams/react-webpack-tangram-boilerplate)
To try this out, clone this repository to your local environment, then run:
```sh
cd webpack-tangram-boilerplate
npm install
npm start
```
This will create a JavaScript bundle called `dist/bundle.js` using `webpack`, and start a local web server with `http-server` so that you can observe the app in action. You can open it in your browser at `http://localhost:8080`.