css - jquery-ui icons not showing in production environment -
jquery-ui icons not showing on production server. in browser console, come 404 , fail load. work fine locally on development, i'm not sure going wrong.
i'm using custom theme, located in images subdirectory under vendor/assets/stylesheets.
does know causing these icons not show in production?
i've tried changing paths urls in css , precompiling assets on production already.
here how have set up:
vendor assets stylesheets images **icons , custom theme** jquery-ui.css application.css.scss
*= require_self *= require foundation_and_overrides *= require slick *= require slick-theme *= require jquery-ui *= require main */ image paths
here 1 of images not loading in production
.ui-widget-content .ui-icon { background-image: url("images/ui-icons_469bdd_256x240.png"); }
for asset pipeline fingerprinting work, need use rails' helpers in css file:
.ui-widget-content .ui-icon { background-image: url(<%= asset_path "images/ui-icons_469bdd_256x240.png" %>); } more details here.
Comments
Post a Comment