Skip to content

Commit 98f470a

Browse files
committed
Update assets path for webpacker
1 parent b2d7c55 commit 98f470a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/initializers/assets.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Version of your assets, change this if you want to expire all your assets.
44
Rails.application.config.assets.version = '1.0'
55

6+
Rails.application.config.assets.paths << Rails.root.join('node_modules')
7+
68
# Add Modernizr
79
Rails.application.config.assets.precompile += %w( vendor/modernizr.js )
810

0 commit comments

Comments
 (0)