This repository has been archived by the owner on Jun 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the sprockets plugin for asset provisioning
- Loading branch information
1 parent
5c07d8a
commit a50f8f0
Showing
3 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
:asset_root: public | ||
:load_path: | ||
- app/javascripts | ||
- vendor/sprockets/*/src | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
namespace :sprockets do | ||
desc "Generate the Sprockets concatenated JavaScript file" | ||
task :generate_asset do | ||
desc "Generate and install the Sprockets concatenated JavaScript file" | ||
task :install_script do | ||
require "config/environment" | ||
SprocketsApplication.generate_asset! | ||
SprocketsApplication.install_script | ||
end | ||
|
||
desc "Install any assets provided by Sprockets scripts" | ||
task :install_assets do | ||
require "config/environment" | ||
SprocketsApplication.install_assets | ||
end | ||
end |