dart-sass/bin/sass.dart
2016-08-30 15:51:15 -07:00

15 lines
433 B
Dart

// Copyright 2016 Google Inc. Use of this source code is governed by an
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
import 'dart:io';
import 'package:path/path.dart' as p;
import 'package:sass/src/parser.dart';
void main(List<String> args) {
var parser = new Parser(new File(args.first).readAsStringSync(),
url: p.toUri(args.first));
print(parser.parse());
}