Improve and fix SASS preprocessing

pull/91/head
Francis Lachapelle 2015-06-12 14:12:51 -04:00
parent b85b2ed416
commit 20914a8812
2 changed files with 8 additions and 3 deletions

View File

@ -5,12 +5,17 @@ include ../common.make
WEBSERVER_RESOURCE_DIRS = css fonts img js
build-static-files:
npm install --production
@if [ ! -e angular-material/src ]; then \
git submodule init; \
fi
git submodule update
@if [ -d bower_components ]; then \
bower update --allow-root; \
else \
bower install --allow-root; \
fi
grunt build
grunt --stack build
all :: build-static-files

View File

@ -36,7 +36,7 @@ module.exports = function(grunt) {
options: {
map: false,
processors: [
require('autoprefixer-core')({browsers: '> 1%, last 2 versions, last 3 Firefox versions'}).postcss,
require('autoprefixer-core')({browsers: '> 1%, last 2 versions, last 3 Firefox versions'}),
// minifier
require('csswring').postcss
]
@ -48,7 +48,7 @@ module.exports = function(grunt) {
options: {
map: true,
processors: [
require('autoprefixer-core')({browsers: '> 1%, last 2 versions, last 3 Firefox versions'}).postcss
require('autoprefixer-core')({browsers: '> 1%, last 2 versions, last 3 Firefox versions'})
]
// We may consider using css grace (https://github.com/cssdream/cssgrace) for larger support