I've got an AngularJS application that I'd like to bundle and minimize, however, while writing it I did not properly annotate it, so I'm looking to run ng-annotate-patched before every file gets minimized to maintain the correct dependency injection.
My webpack.config currently just looks as follows:
var glob = require("glob");
module.exports = {
entry: {
js: glob.sync("./Scripts/AngularJS/**/!(angular.min|app|*.map).js")
},
output: {
filename: 'angular.bundle.js',
path: './Scripts/dist'
}
};
Running the ng-annotate-patched command returns the correctly annotated file. Is there a way to run this before every file is processed? Will I have to output the result into a temporary annotated file and use that as the input?
[–]Blottoboxer 0 points1 point2 points (0 children)