Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sprockets 3/4 style manifest.js #1759

Merged
merged 1 commit into from
Mar 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions backend/app/assets/config/solidus_backend_manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
//= link_tree ../images

//= link spree/backend/all.js
//= link spree/backend/all.css

//= link select2_locale_ar.js
//= link select2_locale_az.js
//= link select2_locale_bg.js
//= link select2_locale_ca.js
//= link select2_locale_cs.js
//= link select2_locale_da.js
//= link select2_locale_de.js
//= link select2_locale_el.js
//= link select2_locale_es.js
//= link select2_locale_et.js
//= link select2_locale_eu.js
//= link select2_locale_fa.js
//= link select2_locale_fi.js
//= link select2_locale_fr.js
//= link select2_locale_gl.js
//= link select2_locale_he.js
//= link select2_locale_hr.js
//= link select2_locale_hu.js
//= link select2_locale_id.js
//= link select2_locale_is.js
//= link select2_locale_it.js
//= link select2_locale_ja.js
//= link select2_locale_ka.js
//= link select2_locale_ko.js
//= link select2_locale_lt.js
//= link select2_locale_lv.js
//= link select2_locale_mk.js
//= link select2_locale_ms.js
//= link select2_locale_nl.js
//= link select2_locale_no.js
//= link select2_locale_pl.js
//= link select2_locale_pt-BR.js
//= link select2_locale_pt-PT.js
//= link select2_locale_ro.js
//= link select2_locale_rs.js
//= link select2_locale_ru.js
//= link select2_locale_sk.js
//= link select2_locale_sv.js
//= link select2_locale_th.js
//= link select2_locale_tr.js
//= link select2_locale_ug-CN.js
//= link select2_locale_uk.js
//= link select2_locale_vi.js
//= link select2_locale_zh-CN.js
//= link select2_locale_zh-TW.js
8 changes: 1 addition & 7 deletions backend/config/initializers/assets.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
Rails.application.config.assets.precompile += %w[
spree/backend/all*
fontawesome-webfont*
select2_locale*
jquery-ui/*.png
solidus-style-guide-logo.png
]
Rails.application.config.assets.precompile << 'solidus_backend_manifest.js'
1 change: 1 addition & 0 deletions core/app/assets/config/solidus_core_manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//= link_tree ../images
2 changes: 1 addition & 1 deletion core/config/initializers/assets.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Rails.application.config.assets.precompile += %w( logo/solidus_logo.png noimage/*.png )
Rails.application.config.assets.precompile << 'solidus_core_manifest.js'
1 change: 0 additions & 1 deletion core/config/initializers/premailer_assets.rb

This file was deleted.

6 changes: 6 additions & 0 deletions frontend/app/assets/config/solidus_frontend_manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//= link_tree ../../../vendor/assets/javascripts/jquery.validate/localization/ .js
//
//= link_tree ../images
//
//= link spree/frontend/all.js
//= link spree/frontend/all.css
9 changes: 1 addition & 8 deletions frontend/config/initializers/assets.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
Rails.application.config.assets.precompile += %w[
spree/frontend/all*
jquery.validate/localization/messages_*
favicon.ico
spree/frontend/cart.png
credit_cards/*
icons/delete.png
]
Rails.application.config.assets.precompile << 'solidus_frontend_manifest.js'