SASS 没有使用 Dart DDC 进行编译
SASS not compiling with the Dart DDC
使用 DDC 编译我的网络应用程序时出现以下错误:
SEVERE] build_web_compilers|ddc on package:sass/sass.dartdevc.module (cached):
Error compiling dartdevc module:sass|lib/sass.ddc.js
[error] Target of URI doesn't exist: 'node/interface.dart'. (package:sass/src/importer/node.dart, line 5, col 8)
[error] The exported library ''node/interface.dart'' can't have a part-of directive. (package:sass/src/importer/node.dart, line 5, col 8)
[error] Target of URI doesn't exist: 'io/interface.dart'. (package:sass/src/io.dart, line 7, col 8)
[error] Target of URI doesn't exist: 'io/interface.dart'. (package:sass/src/io.dart, line 12, col 8)
[error] The exported library ''io/interface.dart'' can't have a part-of directive. (package:sass/src/io.dart, line 12, col 8)
[error] Target of URI doesn't exist: 'package:package_resolver/package_resolver.dart'. (package:sass/src/sync_package_resolver.dart, line 1, col 8)
我不太确定我需要什么。我有一个名为 compiler-sass.dart 的飞镖文件,其中包含以下代码:
import 'dart:io';
import 'package:sass/sass.dart' as sass;
void main(List<String> arguments) {
var result = sass.compile(arguments[0]);
new File(arguments[1]).writeAsStringSync(result);
}
如果我手动编译我的 sass 文件,它可以工作,但不能使用命令:
webdev serve --hot-reload
我的 pubspec 具有以下依赖项:
dependencies:
path: ^1.4.1
sass: ^1.16.1
vue: ^0.4.1
build_runner: ^1.1.2
build_web_compilers: ^1.0.0
intl: ^0.15.7
我在这里错过了什么?为什么不起作用?
https://pub.dartlang.org/packages/sass_builder 直接与 webdev
集成,以增量方式仅构建更改的内容和浏览器获取的内容。
使用 DDC 编译我的网络应用程序时出现以下错误:
SEVERE] build_web_compilers|ddc on package:sass/sass.dartdevc.module (cached):
Error compiling dartdevc module:sass|lib/sass.ddc.js
[error] Target of URI doesn't exist: 'node/interface.dart'. (package:sass/src/importer/node.dart, line 5, col 8)
[error] The exported library ''node/interface.dart'' can't have a part-of directive. (package:sass/src/importer/node.dart, line 5, col 8)
[error] Target of URI doesn't exist: 'io/interface.dart'. (package:sass/src/io.dart, line 7, col 8)
[error] Target of URI doesn't exist: 'io/interface.dart'. (package:sass/src/io.dart, line 12, col 8)
[error] The exported library ''io/interface.dart'' can't have a part-of directive. (package:sass/src/io.dart, line 12, col 8)
[error] Target of URI doesn't exist: 'package:package_resolver/package_resolver.dart'. (package:sass/src/sync_package_resolver.dart, line 1, col 8)
我不太确定我需要什么。我有一个名为 compiler-sass.dart 的飞镖文件,其中包含以下代码:
import 'dart:io';
import 'package:sass/sass.dart' as sass;
void main(List<String> arguments) {
var result = sass.compile(arguments[0]);
new File(arguments[1]).writeAsStringSync(result);
}
如果我手动编译我的 sass 文件,它可以工作,但不能使用命令:
webdev serve --hot-reload
我的 pubspec 具有以下依赖项:
dependencies:
path: ^1.4.1
sass: ^1.16.1
vue: ^0.4.1
build_runner: ^1.1.2
build_web_compilers: ^1.0.0
intl: ^0.15.7
我在这里错过了什么?为什么不起作用?
https://pub.dartlang.org/packages/sass_builder 直接与 webdev
集成,以增量方式仅构建更改的内容和浏览器获取的内容。