File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
@import ' bootstrap/scss/bootstrap' ;
2
+ @import ' bootstrap-icons/font/bootstrap-icons' ;
Original file line number Diff line number Diff line change 1
- say "Install Bootstrap with Popperjs/core"
1
+ say "Install Bootstrap with Bootstrap Icons and Popperjs/core"
2
2
copy_file "#{ __dir__ } /application.bootstrap.scss" ,
3
3
"app/assets/stylesheets/application.bootstrap.scss"
4
- run "yarn add sass bootstrap @popperjs/core"
4
+ run "yarn add sass bootstrap bootstrap-icons @popperjs/core"
5
+
6
+ inject_into_file "config/initializers/assets.rb" , after : /.*Rails.application.config.assets.paths.*\n / do
7
+ <<~RUBY
8
+ Rails.application.config.assets.paths << Rails.root.join("node_modules/bootstrap-icons/font")
9
+ RUBY
10
+ end
5
11
6
12
if Rails . root . join ( "app/javascript/application.js" ) . exist?
7
13
say "Appending Bootstrap JavaScript import to default entry point"
You can’t perform that action at this time.
0 commit comments