Add autoprefixer, require linting of sass before compilation, remove lint-php from PHONY list
This commit is contained in:
parent
9ccea2c1c3
commit
6a2f7380a6
1 changed files with 3 additions and 2 deletions
5
Makefile
5
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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue