Skip to content
Permalink
Browse files

feature: SCSS-Styles now with sitegen-support, no need for packages-f…

…older anymore
  • Loading branch information
MikeMitterer committed Nov 16, 2016
1 parent e40794b commit 2b2325512c7a8d5877a6304feb2c27a46b372faf
@@ -0,0 +1,6 @@
# SASS_PATH wird nur durch "sass" unterstützt
# Usage: sitegen -c
sasscompiler: sass
sass_path:
- "package:mdl"
- "package:spaceinvaders"
No changes.
File renamed without changes.
File renamed without changes.
@@ -4,15 +4,16 @@
// More: http://sass-guidelin.es/#the-7-1-pattern
//

// ----------------------------------------------------------------------------
// 0 - other frameworks where this one relays on
@import "frameworks/mdl";

// ----------------------------------------------------------------------------
// 1 - utils (variables, functions, mixin, placeholders...)

// ----------------------------------------------------------------------------
// 2 - vendors

// MDL!
@import "vendors/mdl/variables/variables";

// ----------------------------------------------------------------------------
// 3 - base (reset, typography)

@@ -37,13 +37,15 @@ analyze() {

@Task()
genCss() {
final String src = "lib/assets/styles/main.scss";
final String src = "lib/assets/styles/spaceinvaders.scss";
final String target = "${path.withoutExtension(src)}.css";
final String mini = "${path.withoutExtension(src)}.min.css";

run("sassc", arguments: [ src, target ] );
run("autoprefixer", arguments: [ target ] );
run("minify", arguments: [ "--output", mini, target ]);
// run("sassc", arguments: [ src, target ] );
// run("autoprefixer", arguments: [ target ] );
// run("minify", arguments: [ "--output", mini, target ]);

run("/Users/mikemitterer/.pub-cache/bin/sitegen", arguments: [ "-c" ]);
}

@Task()

0 comments on commit 2b23255

Please sign in to comment.
You can’t perform that action at this time.