Import the required JS libraries and mount MatestackUiCore and MatestackUiBootstrap properly. We recommend to remove Turbolinks, as it might interfere with some of the reactivity feature of Matestack:
extract the bootstrap-icons.svg to this path: app/assets/images/icons (currently served via assets pipeline, we had issues serving the icons via Webpack)
and finally compile the code with webpack:
When you update the matestack-ui-bootstrap Ruby gem, make sure to update the npm package as well!
Update
Ruby Gem
Depending on the entry in your Gemfile, you might need to adjust the allowed version ranges in order to update the Gem. After checked and adjusted the version ranges, run:
and then check the installed version:
JavaScript Package
If you've installed the JavaScript dependecies via Yarn/Webpacker you need to update the JavaScript assets via yarn:
No need to specify a version in your package.json.
matestack-ui-bootstrap's version is automatically picked up to be compatible with the installed matestack-ui-core version.
and finally check if the correct version is installed:
The Ruby gem version and the NPM package version should match!