From 6a2f7380a67afd7568fd4195ad04bf1087daea29 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 15 Dec 2016 11:56:36 +0000 Subject: [PATCH] Add autoprefixer, require linting of sass before compilation, remove lint-php from PHONY list --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 58d7e1aa..df91c0ef 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # A Makefile to run various tasks -.PHONY: sass frontend js compress lint-sass lint-js lint-php +.PHONY: sass frontend js compress lint-sass lint-js jsfiles := $(wildcard resources/assets/js/*.js) sassfiles := $(wildcard resources/assets/sass/*.scss) yarnfiles:= node_modules/whatwg-fetch/fetch.js \ @@ -16,8 +16,9 @@ $(wildcard public/assets/frontend/*.js) sass: public/assets/css/app.css -public/assets/css/app.css: $(sassfiles) +public/assets/css/app.css: lint-sass sassc --style compressed --sourcemap resources/assets/sass/app.scss public/assets/css/app.css + postcss --use autoprefixer --autoprefixer.browsers "> 5%" --output public/assets/css/app.css public/assets/css/app.css frontend: $(yarnfiles) for f in $^; do \