Last active
March 16, 2017 20:33
-
-
Save renatoschroepfer/fa5e6308da886ac501546c767f5d5c61 to your computer and use it in GitHub Desktop.
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
| const elixir = require('laravel-elixir'); | |
| require('laravel-elixir-vue-2'); | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | 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(mix => { | |
| mix.sass('app.scss') | |
| .webpack('app.js'); | |
| }); | |
| /*Conf of refresh browserSync*/ | |
| elixir(function(mix) { | |
| mix.browserSync({ | |
| proxy: 'localhost:8080/websitehomolg/public/' | |
| }); | |
| }); | |
| /*Combine Multiple Sets of Scripts*/ | |
| elixir(function(mix){ | |
| mix.scripts([ | |
| 'app.js' | |
| ],'public/js/app.js'); | |
| /*Combine Multiple Sets of styles*/ | |
| mix.styles([ | |
| 'app.css' | |
| ], 'public/css/app.scss'); | |
| }); | |
| /*Start Configuration Elixir*/ | |
| elixir(mix => { | |
| mix.styles([ | |
| ], 'public/css/app.scss') | |
| .webpack('app.js') | |
| .copy('node_modules/font-awesome/fonts', 'public/build/fonts') | |
| .copy('node_modules/ionicons/dist/fonts', 'public/build/fonts') | |
| .version(['css/app.css', 'js/app.js']); | |
| }); | |
| /*Finix Configuration Elixir*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment