This is a sample project that implements:
The Inertia Adapter was based on https://github.com/lloople/vapor-inertia-adapter and heavily modified so it is properly working. Thats why is in Deps directory.
This is just a sample implementation. May be a better approach is possible. Please experiment and see if this works for your use case.
The webpack.mix.js was modified in order to generate a Sources/App/mix.swift file that will contain the values of mix-manifest.json.
Modify vapor.mix.js to your needs.
-
make install
: Will install npm_modules directory. -
make webpack-watch
: Will run the Laravel Mix watcher for any change inside the Resources/js directory. -
make run
: Will execute the Vapor Server.