[ruby-on-rails] How to integrate Dart into a Rails app

How should I go about integrating my Dart application, into my rails application. I'm having a hard time with the whole, 'packages' structure that has to exist on every directory.

Because the subdirectories reference the root using an alias, rails is not serving them even though all of this is in the 'public' folder

This question is related to ruby-on-rails dart dart-pub

The answer is


If you run pub build --mode=debug the build directory contains the application without symlinks. The Dart code should be retained when --mode=debug is used.

Here is some discussion going on about this topic too Dart and it's place in Rails Assets Pipeline