Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit d135429

Browse files
authored
Merge pull request #6 from dionb/master
Doc consistency and make error checking work
2 parents e4ab75d + 0444a17 commit d135429

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ module.exports = {
1717
},
1818

1919
execute: function () {
20-
20+
//allow for casing to be consistent with documentation
21+
if(typeof elixir !== "undefined" && typeof Elixir === "undefined"){
22+
var Elixir = elixir;
23+
}
2124
if(Elixir) {
2225
try {
2326
if (fs.existsSync(config.path)) {
@@ -37,14 +40,14 @@ module.exports = {
3740
}
3841
}
3942
catch (e) {
40-
gulpUtil.PluginError({
43+
new gulpUtil.PluginError({
4144
plugin: 'laravel-elixir-env',
4245
message: 'Currently only webpack is supported.'
4346
});
4447
}
4548
}
4649
else {
47-
gulpUtil.PluginError({
50+
new gulpUtil.PluginError({
4851
plugin: 'laravel-elixir-env',
4952
message: 'Please include laravel-elixir-env after Laravel Elixir.'
5053
});

0 commit comments

Comments
 (0)