Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usemin option uglifyjs error "Maximum call stack size" #123

Open
vijeetgv opened this issue May 15, 2015 · 2 comments
Open

usemin option uglifyjs error "Maximum call stack size" #123

vijeetgv opened this issue May 15, 2015 · 2 comments

Comments

@vijeetgv
Copy link

Hi,
when I try the usemin option it seems to be failing:
Gruntfile code:

ngtemplates:  {
      app: {
        src: '<%= yeoman.app %>/templates/**/*.html',
        dest: '.tmp/templates.js', 
        options:  {
          htmlmin:  '<%= htmlmin.dist %>',
          url:    function(url) { return url.replace('.html', ''); },
          module: 'mpoApp'
          usemin: 'scripts\\scripts.js'
        }
      }
    },

Error:

Running "uglify:generated" (uglify) task
[RangeError: Maximum call stack size exceeded]
>> Uglifying source .tmp/concat/scripts/scripts.js failed.
Warning: Uglification failed.
Maximum call stack size exceeded.
 Use --force to continue.

Aborted due to warnings.
@arnorhs
Copy link

arnorhs commented Dec 14, 2015

i have the same issue. did you ever end up figuring it out @vijeetgv ?

@vijeetgv
Copy link
Author

No, I skipped the on-the-fly usemin part & did it in 2 stages i.e. first grunt-react-templates & then usemin on the generated files. The *.rt.js files we can simply generate in the src folder itself (or maybe a subfolder, as desired) & then usemin them whenever we wish to build it to www.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants