ingram-projects / animxyz

The first truly composable CSS animation library. Built for Vue, React, SCSS, and CSS, AnimXYZ will bring your website to life.
https://animxyz.com
MIT License
2.41k stars 56 forks source link

Setup with SASS in Rails project #82

Closed Overload119 closed 2 years ago

Overload119 commented 2 years ago

I have been struggling trying to install this in a Rails project.

  1. Installed the latest version. https://github.com/ingram-projects/animxyz/releases/tag/v0.6.4
  2. I opened /core/build.scss and dragged it into the vendors/stylesheets directory

vendor/assets/stylesheets/animxyz

in app/assets/stylesheets/application.sass I used @import "animxyz/animxyz"

Overload119 commented 2 years ago

I just ended up using <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@animxyz/core">

mattaningram commented 2 years ago

Is it possible you are using node-sass to compile your .scss files when building? AnimXYZ needs dart-sass to properly compile.

Overload119 commented 2 years ago

That would explain it. Dart size is not supported in rails.