GTF*_*GTF 2 less gruntjs grunt-contrib-less
我有一个非常简单的LESS文件,现在只需要导入Bootstrap.我正在使用grunt并grunt-contrib-less@0.9.0在save(less@1.6.3)上编译LESS文件.
我的文件看起来像这样:
@charset "utf-8";
/**
* This is the root style file for the app
* to include styles in your html, you only need to include either:
* dist/styles.dev.css (for development)
* dist/styles.css (for production)
*/
// Libraries
@import "../lib/bootstrap/less/bootstrap"
// Our own files
Run Code Online (Sandbox Code Playgroud)
每当我尝试运行less:dev任务时,我都会收到以下错误.
Running "less:dev" (less) task
>> ParseError: Unrecognised input in style/styles.less on line 10, column 1:
>> 9 // Libraries
>> 10 @import "../lib/bootstrap/less/bootstrap"
>> 11
Run Code Online (Sandbox Code Playgroud)
我已经尝试从文件中删除除导入行之外的所有内容,但它仍然失败,因此使用该@import指令会发生一些奇怪的事情.
有任何想法吗?
| 归档时间: |
|
| 查看次数: |
4026 次 |
| 最近记录: |