Skip to content

Instantly share code, notes, and snippets.

@carlosbensant
Created December 9, 2016 20:18
Show Gist options
  • Save carlosbensant/ce0ae8bba0238b1ded20bd8c33dd5917 to your computer and use it in GitHub Desktop.
Save carlosbensant/ce0ae8bba0238b1ded20bd8c33dd5917 to your computer and use it in GitHub Desktop.
Using Laravel Elixir in non Laravel project (for WordPress project).
const elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| 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 your application as well as publishing vendor resources.
|
*/
elixir.config.assetsPath = 'assets';
elixir((mix) => {
mix.sass('main.scss', 'style.css');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment