Skip to content

Commit

Permalink
Remove sprockets config step, ensure propshaft compatibility (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger authored Nov 26, 2024
1 parent 6396cba commit 7bdb3cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ $ rails inner_performance:install:migrations
$ rails db:migrate
```

Add inner_performance to `app/assets/config/manifest.js`
```javascript
//= link inner_performance/application.css
```

Mount UI in `routes.rb` (don't forget to protect it!)

```ruby
Expand Down
15 changes: 0 additions & 15 deletions app/assets/stylesheets/inner_performance/application.css
Original file line number Diff line number Diff line change
@@ -1,15 +0,0 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/
5 changes: 5 additions & 0 deletions lib/inner_performance/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@ class Engine < ::Rails::Engine
initializer 'inner_performance.install' do
InnerPerformance.install!
end

initializer 'inner_performance.assets.precompile' do |app|
# this initializer is only called when sprockets is in use
app.config.assets.precompile << 'inner_performance_manifest.js'
end
end
end

0 comments on commit 7bdb3cf

Please sign in to comment.