LoginSignup
0
2

More than 5 years have passed since last update.

vendor/assetsに配置したファイルの読み込み方(assetpipeline)

Posted at

超初心者向けの記事です。
vendor/assets/javascript/jquery.mobilemenu.js
というファイルを読み込みたい場合、application.jsに
//= require "jquery.mobilemenu"
//= require_tree .
などと記述。
cssの場合は、
vendor/assets/stylesheets/style.css
というファイルを読み込みたい場合、application.cssに
*/
@import "layout"
などと記述。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2