Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

less外部 文件如何引用? #4

Closed
Uheinanba opened this issue Dec 8, 2016 · 1 comment
Closed

less外部 文件如何引用? #4

Uheinanba opened this issue Dec 8, 2016 · 1 comment

Comments

@Uheinanba
Copy link

1.如果是纯less文件,直接在style里使用@import(类似 @import '../style/test.less')报错
是我使用的方式不对吗?

  1. less文件中如果定义变量 #444这样井号开头的,编译的时候也会报错。
@Gcaufy
Copy link
Collaborator

Gcaufy commented Dec 8, 2016

1
2
3

  1. @import 时需要import相对于根目录的全路径。
  2. 定义#444并没有报错。

@Gcaufy Gcaufy closed this as completed Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants