Webpacker-rs
Webpacker-rs is a Rust wrapper for using WebpackerCli/Webpacker/Webpack in your Rust web framework's deployment and asset management.
Usage
Add the following to your Cargo.toml
[]
= "~0.1"
[]
= "~0.1"
In your build script you can do the following:
use webpacker;
And then in your application during web start up you can generate a hash of the file manifest with:
use webpacker;
// Returns webpacker::Manifest object
// which has a `get` method to look up
// each file.
manifest
You can use the Manifest
object in your routing tables.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/danielpclark/webpacker-cli
License
The gem is available as open source under the terms of the GNU Lesser General Public License version 3.