V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yantianqi
V2EX  ›  程序员

vue 脚手架 vue init webpack-simple 和 vue init webpack 的问题?

  •  
  •   yantianqi · 2017-12-06 11:22:28 +08:00 · 2024 次点击
    这是一个创建于 2340 天前的主题,其中的信息可能已经有所发展或是发生改变。

    用 vue init webpack-simple 创建的项目中用
    @import '~static/index.css'; 有效
    用 vue init webpack 创建的不行啊?要怎么取路径在 vue 中引入 css 呢

    1 条回复    2017-12-06 11:33:52 +08:00
    airyland
        1
    airyland  
       2017-12-06 11:33:52 +08:00
    没有设置 alias 用相对路径就可以了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2187 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:24 · PVG 19:24 · LAX 04:24 · JFK 07:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.