config.rb http图片路径只给一个斜杠?
config.rb http images path only gives one slash?
我对 SASS 开发 Wordpress 网站特别陌生。当我需要使用 config.rb 以下设置创建 http:// 路径时出现问题:
http_path = "/"
css_dir = '/'
sass_dir = '_/components/sass'
javascripts_dir = '_/js'
images_dir = 'http://localhost:8888/acdbox/wp-content/uploads/2015/03/'
fonts_dir = '_/fonts'
output_style = :extended
relative_assets = true
disable_warnings = true
输出为:
background: url('http:/localhost:8888/acdbox/wp-content/uploads/2015/03/home-order-bg2.png')
缺少 http 双斜杠 (http://),仅显示为 (http:/) 单斜杠。我做错了什么吗?请帮忙。
知道了。我不确定这是否是正确的方法,但它有效。通过将 http_images_path 设置为图像准确放置的位置并将 relative_assets 设置为 false
http_path = "/"
http_images_path = "http://localhost:8888/acdbox/wp-content/uploads/2015/03/"
css_dir = '/'
sass_dir = '_/components/sass'
javascripts_dir = '_/js'
images_dir = ''
fonts_dir = '_/fonts'
output_style = :expanded
relative_assets = false
disable_warnings = true
这是正确的方法吗?有没有更好的方法来做到这一点?
我对 SASS 开发 Wordpress 网站特别陌生。当我需要使用 config.rb 以下设置创建 http:// 路径时出现问题:
http_path = "/"
css_dir = '/'
sass_dir = '_/components/sass'
javascripts_dir = '_/js'
images_dir = 'http://localhost:8888/acdbox/wp-content/uploads/2015/03/'
fonts_dir = '_/fonts'
output_style = :extended
relative_assets = true
disable_warnings = true
输出为:
background: url('http:/localhost:8888/acdbox/wp-content/uploads/2015/03/home-order-bg2.png')
缺少 http 双斜杠 (http://),仅显示为 (http:/) 单斜杠。我做错了什么吗?请帮忙。
知道了。我不确定这是否是正确的方法,但它有效。通过将 http_images_path 设置为图像准确放置的位置并将 relative_assets 设置为 false
http_path = "/"
http_images_path = "http://localhost:8888/acdbox/wp-content/uploads/2015/03/"
css_dir = '/'
sass_dir = '_/components/sass'
javascripts_dir = '_/js'
images_dir = ''
fonts_dir = '_/fonts'
output_style = :expanded
relative_assets = false
disable_warnings = true
这是正确的方法吗?有没有更好的方法来做到这一点?