File tree 2 files changed +3
-8
lines changed
lib/bootstrap-wysihtml5-rails 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -62,14 +62,6 @@ Or just add the ones that you want
62
62
//= require bootstrap-wysihtml5 /locales/es-ES
63
63
```
64
64
65
- Rails compiles and minify all stylesheets into a single file. We need `bootstrap-wysihtml5 /wysiwyg-color .css` to be available as a single file.
66
- Modify `config/environments/production.rb` to contain:
67
-
68
- ```
69
- # Precompile additional assets (application.js , application.css , and all non-JS/CSS are already added)
70
- config.assets.precompile + = %w( bootstrap-wysihtml5 /wysiwyg-color .css )
71
- ```
72
-
73
65
You may need to restart your rails server.
74
66
75
67
## Using bootstrap-wysihtml5-rails
Original file line number Diff line number Diff line change 1
1
module BootstrapWysihtml5Rails
2
2
module Rails
3
3
class Engine < ::Rails ::Engine
4
+ initializer "BootstrapWysihtml5Rails precompile hook" , :group => :all do |app |
5
+ app . config . assets . precompile += %w( bootstrap-wysihtml5.css bootstrap-wysihtml5.js bootstrap-wysihtml5/wysiwyg-color.css )
6
+ end
4
7
end
5
8
end
6
9
end
You can’t perform that action at this time.
0 commit comments