Angular 2 Concat and minify with Grunt
Asked Answered
B

0

6

I love using Grunt for concatenating and minifying plugins etc.. can someone please tell me how to do this task on Angular 2's node_modules.. i want to end up with 1 file that is minified and concatenated.. I have tried webpack etc and gulp tutorials but none of them get the jobs done.

Barricade answered 28/5, 2016 at 18:59 Comment(3)
Does that help? https://mcmap.net/q/437368/-how-to-get-one-file-as-output-of-angular-cli/1160794Blanks
You can simply add Grunt minfiy command in to angular.json file to run on build commandRemote
Also, you say you want to do it on node node_modules, but angular already does that: ithe resulting file is vendor.jsBlanks

© 2022 - 2024 — McMap. All rights reserved.