Skip to content

Commit 467c54d

Browse files
committed
update comment header in sprockets application.js, for move to vite
1 parent a4165f9 commit 467c54d

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

app/assets/javascripts/application.js

+16-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
// This is a manifest file that'll be compiled into application.js, which will include all the files
2-
// listed below.
1+
// This is a SPROCCKETS manifest file that'll be compiled into an application.js
32
//
4-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
5-
// vendor/assets/javascripts directory can be referenced here using a relative path.
3+
// It can include files via sprockets `//= require` directives in JS comments,
4+
// below.
65
//
7-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8-
// compiled file. JavaScript code in this file should be added after the last require_* statement.
9-
//
10-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11-
// about supported directives.
6+
// Our sciencehistory app generally tries to avoid using sprockets for JS now, we
7+
// use vite. This *only* includes assets which cannot be conveniently included via
8+
// vite, for instance from dependencies that *only* provide their assets in manner
9+
// for sprockets inclusion.
1210
//
11+
// This will produce a secondary `application.js` included via rails
12+
// `javascript_include_tag`. For bulk of our JS, see vite stuff
13+
// at ./app/frontend
1314

1415

1516
// browse_everything https://github.com/samvera/browse-everything
@@ -24,6 +25,8 @@
2425
//= require jquery.treetable
2526
//= require browse_everything/behavior
2627

28+
29+
2730
// Required by Blacklight
2831
// not currently using blacklight 'suggest' func which uses twitter typeahead.
2932
// twitter typeahead is a non maintained kind of mess, so we might try to
@@ -33,10 +36,14 @@
3336
// require twitter/typeahead
3437
//= require blacklight/blacklight
3538

39+
40+
3641
// For blacklight_range_limit built-in JS, if you don't want it you don't need
3742
// this:
3843
//= require 'blacklight_range_limit'
3944

45+
46+
4047
//= require_tree .
4148

4249

0 commit comments

Comments
 (0)