4
I created a task at Grunt
to automatically the concat
and uglify
in my files .js
Angular to improve performance and also to avoid inserting a new file every time I create a controller, for example. However, with this, the errors in the console became incoherent obviously.
So I wonder if there’s any way to create a .map
(as I already do in my . min do Bootstrap
with LESS
) or something of the kind to facilitate the task of debug
.
Concatenating isn’t cool either? :(
– Matt S
@Matheusweissheimersartoretto Concatenating is very easy, because it contributes to the reduction of download time when your application is in production. For local development, however, it is unnecessary - you are literally on the machine where the file is located.
– OnoSendai
But it is not much more work to keep adding all my . js there in the index and then having to delete to add the .min.js?
– Matt S
@Matheusweissheimersartoretto This will not be necessary if your task
build
only concatenate the non-minified version, leaving the 'min.js' version in charge of the taskbuild-dist
. This goes from your choice of development time configuration.– OnoSendai