arnabwahid / wordpress-bootstrap

Bootstrap in WordPress theme form - Bootstrap 3.3.1
1.49k stars 557 forks source link

Issue with Grunt uglify output path #220

Closed jamesinc closed 9 years ago

jamesinc commented 9 years ago

I've noticed an issue with the way the grunt tasks are setup by default for this project. The uglify task reads out every JS file in library/js and then writes library/js/scripts.min.js. What happens when you are developing a theme and running grunt frequently is that each time, grunt collects the previously generated scripts.min.js file and rolls it into the new scripts.min.js file. As a result, not only do you very quickly end up with an enormous JS file, but memory usage balloons out.

Please consider either putting the build output into its own directory, or cleaning the source directories of previous build artefacts before each build.

chrisbarnes commented 9 years ago

@jamesinc thanks for bringing this up. I've just pushed up an update that addresses this.