rails6 导入js依赖库css样式
If you have upgraded your app from an earlier version of Rails make sure you add the following line:
Rails.application.config.assets.paths << Rails.root.join(‘node_modules‘)
in config/initializers/assets.rb
.
This is included by default in the newly generated apps.
Then in
app/javascripts/packs/application.sass
the following should do the job:@import ‘font-awesome/css/font-awesome‘;
(no ~
and no file extension)
相关推荐
csstpeixun 2020-06-28
waterv 2020-06-14
jiedinghui 2020-10-25
Ladyseven 2020-10-22
zuncle 2020-09-28
xiaohuli 2020-09-02
葉無聞 2020-09-01
nicepainkiller 2020-08-20
AlisaClass 2020-08-09
myloveqiqi 2020-08-09
buttonChan 2020-08-02
drdrsky 2020-07-29
Ladyseven 2020-07-25
nicepainkiller 2020-07-24
AlisaClass 2020-07-19
hellowzm 2020-07-19
background-color: blue;background-color: yellow;<input type="button" value="变蓝" @click="changeColorT
昔人已老 2020-07-19
骆驼的自白 2020-07-18
lanzhusiyu 2020-07-19