Skip to content

Commit

Permalink
Remove node-sass
Browse files Browse the repository at this point in the history
  • Loading branch information
Cordobo committed Sep 15, 2018
1 parent a40f7e8 commit 61ee066
Show file tree
Hide file tree
Showing 5 changed files with 10,369 additions and 30 deletions.
17 changes: 1 addition & 16 deletions gulpfile.js
@@ -1,5 +1,4 @@
const gulp = require('gulp');
const sass = require('node-sass');
const inlineTemplates = require('gulp-inline-ng2-template');
const exec = require('child_process').exec;

Expand All @@ -13,8 +12,7 @@ const INLINE_TEMPLATES = {
CONFIG: {
base: '/src',
target: 'es6',
useRelativePaths: true,
styleProcessor: compileSass
useRelativePaths: true
}
};

Expand Down Expand Up @@ -48,16 +46,3 @@ gulp.task('build:esm', ['inline-templates'], (callback) => {
gulp.task('build:esm:watch', ['build:esm'], () => {
gulp.watch('src/**/*', ['build:esm']);
});

/**
* Compile SASS to CSS.
* @see https://github.com/ludohenin/gulp-inline-ng2-template
* @see https://github.com/sass/node-sass
*/
function compileSass(path, ext, file, callback) {
let compiledCss = sass.renderSync({
file: path,
outputStyle: 'compressed',
});
callback(null, compiledCss.css);
}

0 comments on commit 61ee066

Please sign in to comment.