Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rustwasm/rust-webpack-template

Kickstart your Rust, WebAssembly, and Webpack project!
https://github.com/rustwasm/rust-webpack-template

Last synced: 6 days ago
JSON representation

Kickstart your Rust, WebAssembly, and Webpack project!

Awesome Lists containing this project

README

        

rust-webpack-template

Kickstart your Rust, WebAssembly, and Webpack project!


Build Status


Tutorial
|
Chat

Built with 🦀🕸 by The Rust and WebAssembly Working Group

## About

This template is designed for creating monorepo-style Web applications with
Rust-generated WebAssembly and Webpack without publishing your wasm to NPM.

[**📚 Read this template's tutorial! 📚**][template-docs]

Be sure to check out [other `wasm-pack` tutorials online][tutorials] for other
templates and usages of `wasm-pack`.

[tutorials]: https://rustwasm.github.io/docs/wasm-pack/tutorials/index.html
[template-docs]: https://rustwasm.github.io/docs/wasm-pack/tutorials/hybrid-applications-with-webpack/index.html

## 🚴 Using This Template

You can use `npm init` to clone this template:

```sh
npm init rust-webpack my-app
```

[Afterwards check out the full documentation for exploring it][template-docs].

## 🔋 Batteries Included

This template comes pre-configured with all the boilerplate for compiling Rust
to WebAssembly and hooking into a Webpack build pipeline.

* `npm start` -- Serve the project locally for development at
`http://localhost:8080`. It auto-reloads when you make any changes.

* `npm run build` -- Bundle the project (in production mode).

* `npm test` -- Run the project's unit tests.