```ruby
Rails.application.config.assets.paths << Rails.root.join('node_modules')
Rails.application.config.assets.precompile += ['*.png',
                                               '*.gif']
Rails.application.config.assets.precompile += %w(admin/assets.css admin/assets_admin.js)
```

Add precompile directive for svgs
user
```ruby
Rails.application.config.assets.paths << Rails.root.join('node_modules')
Rails.application.config.assets.precompile += ['*.png',
                                               '*.gif',
                                               '*.svg']
Rails.application.config.assets.precompile += %w(admin/assets.css admin/assets_admin.js)
```
assistant