Switch to grunt-sass + node-sass-import-once

These modules together allow us to import css files from third party
components without maintaining symlinks that essentially rename them as
sass partials, which doesn't work on windows.

// FREEBIE
This commit is contained in:
lilia 2017-05-03 16:43:36 -07:00 committed by Scott Nonnenberg
parent 07235837b4
commit 81d8b78d05
No known key found for this signature in database
GPG key ID: A4931C09644C654B
9 changed files with 339 additions and 106 deletions

View file

@ -13,6 +13,9 @@ module.exports = function(grunt) {
libtextsecurecomponents.push('components/' + bower.concat.libtextsecure[i] + '/**/*.js');
}
var importOnce = require("node-sass-import-once");
grunt.loadNpmTasks("grunt-sass");
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
@ -77,11 +80,15 @@ module.exports = function(grunt) {
}
},
sass: {
stylesheets: {
files: {
'stylesheets/manifest.css': 'stylesheets/manifest.scss'
}
options: {
sourceMap: true,
importer: importOnce
},
dev: {
files: {
"stylesheets/manifest.css": "stylesheets/manifest.scss"
}
}
},
jshint: {
files: [