Use ngAnnotate with Laravel Elixir and Browserify without any additional Elixir extension
Make sure that you have browserify-ngannotate installed.
Update gulpfile.js and add ngAnnotate to the array of Browserify transformers.
var elixir = require('laravel-elixir');
var config = Elixir.config;
// Enable Browserify ngAnnotate transformer
config.js.browserify.transformers.push({
"name": "browserify-ngannotate",
"options": {}
});
elixir(function (mix) {
mix.browserify('app.js');
});
That's it, no need for any extension.
Written by Djamel Eddine Feddad
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Elixir
Authors
Filed Under
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#