Skip to content

Commit

Permalink
Add mix.scripts() and mix.styles() aliases.
Browse files Browse the repository at this point in the history
These are identical to mix.combine() in every way. I’m adding them for
readability and legacy purposes (for folks switching over from Laravel
Elixir).
  • Loading branch information
JeffreyWay committed Feb 16, 2017
1 parent c760204 commit 80f9b05
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/index.js
Expand Up @@ -204,6 +204,28 @@ module.exports.combine = (src, output) => {
};


/**
* Alias for mix.combine().
*
* @param {string|Array} src
* @param {string} output
*/
module.exports.scripts = (src, output) => {
return module.exports.combine(src, output);
};


/**
* Alias for mix.combine().
*
* @param {string|Array} src
* @param {string} output
*/
module.exports.styles = (src, output) => {
return module.exports.combine(src, output);
};


/**
* Identical to mix.combine(), but includes Babel compilation.
*
Expand Down

0 comments on commit 80f9b05

Please sign in to comment.