我在Rubymine中设置了一个使用sass / compass / susy的独立Dart项目。主要的scss文件来自Ruby on Rails项目。在其中我有
@import "compass";
@import 'susy';
当我进行构建时,它对罗盘导入感到满意,但并不满意。我收到错误:
[Error from Sass on jazzcat|lib/css/master.scss]:
could not resolve import 'Instance of '_SassImport'' (tried [jazzcat|lib/css/susy.scss, jazzcat|lib/css/susy.sass, jazzcat|lib/css/_susy.scss, jazzcat|lib/css/_susy.sass])
我以前从未将susy代码加载到项目中。我需要在pubspec中添加一些东西吗?这就是我现在所拥有的:
name: jazzcat
description: A catalog of jazz music
version: 0.0.1
environment:
sdk: '>=1.13.0 <2.0.0'
dependencies:
angular2: 2.0.0-beta.17
browser: ^0.10.0
dart_to_js_script_rewriter: ^1.0.1
sass: any
transformers:
- angular2:
platform_directives:
- 'package:angular2/common.dart#COMMON_DIRECTIVES'
platform_pipes:
- 'package:angular2/common.dart#COMMON_PIPES'
entry_points: web/main.dart
- sass:
compass: true # Include compass
line-numbers: true # Include line numbers in output
style: compact # Style of generated CSS
- dart_to_js_script_rewriter