V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
yantianqi
V2EX  ›  程序员

scss 引入文件路径不正确

  •  
  •   yantianqi · May 19, 2018 · 3509 views
    This topic created in 2903 days ago, the information mentioned may be changed or developed.

    当前目录,scss 文件中有如下

    src:url("#{$ionicons-font-path}/ionicons.eot?v=#{$ionicons-version}");
    

    上级目录有 fonts/ionicons.eot 就是找不到文件

    4 replies    2018-08-22 18:54:44 +08:00
    dopdopdop
        1
    dopdopdop  
       May 19, 2018
    好久没写了,好像要引用编译过后的路径?
    InternetExplorer
        2
    InternetExplorer  
       May 19, 2018
    - $ionicons-font-path 变量有没有设置对
    - 用的什么构建,有些工具加不加引号是两个意思
    yantianqi
        3
    yantianqi  
    OP
       May 19, 2018
    @dopdopdop 网上搜了很多资料,说是,要引用编译后的,开发过程和打包后,怎么不用修改路径,开发过程构建的 css 路径怎么设置?谢谢
    monxiaolee
        4
    monxiaolee  
       Aug 22, 2018
    遇到同样的问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1010 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 23:26 · PVG 07:26 · LAX 16:26 · JFK 19:26
    ♥ Do have faith in what you're doing.