Created
July 20, 2016 21:11
-
-
Save petervmeijgaard/456a65b3e54c8a2b3e68473a334c23e5 to your computer and use it in GitHub Desktop.
Laravel elixir problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"stylus": { | |
"input": "./resources/area/frontend/stylus/app.styl", | |
"output": "public/frontend/css/app.css" | |
}, | |
"version": { | |
"input": [ | |
"public/frontend/css/app.css" | |
], | |
"output": "./public/frontend/build" | |
}, | |
"browserSync": { | |
"proxy": "vivid-blog.dev", | |
"open": false | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var elixir = require('laravel-elixir'), | |
config = require('./elixir.json'); | |
require('laravel-elixir-stylus'); | |
/* | |
|-------------------------------------------------------------------------- | |
| Elixir Asset Management | |
|-------------------------------------------------------------------------- | |
| | |
| Elixir provides a clean, fluent API for defining some basic Gulp tasks | |
| for your Laravel application. By default, we are compiling the Sass | |
| file for our application, as well as publishing vendor resources. | |
| | |
*/ | |
elixir(function (mix) { | |
mix.stylus(config.stylus.input, config.stylus.output) | |
.version(config.version.input, config.version.output) | |
.browserSync({ | |
proxy: config.browserSync.proxy, | |
open: config.browserSync.open | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment