Commit b9b88088 authored by Mattia Migliorini's avatar Mattia Migliorini

#1: use import paths for third party SASS files inclusion

parent 068d2de8
...@@ -23,16 +23,18 @@ var postcss = require("gulp-postcss"); ...@@ -23,16 +23,18 @@ var postcss = require("gulp-postcss");
var autoprefixer = require("autoprefixer"); var autoprefixer = require("autoprefixer");
gulp.task("sass", function() { gulp.task("sass", function() {
return gulp.src("scss/build.scss") return gulp.src("scss/build.scss")
.pipe(sass().on("error", sass.logError)) .pipe(sass({
.pipe(postcss([autoprefixer()])) includePaths: ['node_modules']
.pipe(gulp.dest(".")); }).on("error", sass.logError))
.pipe(postcss([autoprefixer()]))
.pipe(gulp.dest("."));
}); });
gulp.task("watch", function() { gulp.task("watch", function() {
gulp.watch("scss/**/*.scss", ["sass"]); gulp.watch("scss/**/*.scss", ["sass"]);
}); });
gulp.task("default", function() { gulp.task("default", function() {
gulp.start("sass"); gulp.start("sass");
}); });
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<http://www.gnu.org/licenses/>. <http://www.gnu.org/licenses/>.
*/ */
@import '../node_modules/ubuntu-vanilla-theme/scss/theme'; @import 'ubuntu-vanilla-theme/scss/theme';
@import 'vanilla-theme'; @import 'vanilla-theme';
@include ubuntuit-vanilla-theme; @include ubuntuit-vanilla-theme;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment