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:
parent
07235837b4
commit
81d8b78d05
9 changed files with 339 additions and 106 deletions
15
Gruntfile.js
15
Gruntfile.js
|
@ -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: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue