相关疑难解决方法(0)

Grunt uglifym - 超出了调用堆栈大小

我试图使用uglify与grunt连接并缩小一些文件.我已经使用过npm了install grunt-contrib-uglify.

我在grunt.js文件中有以下内容:(我已删除了一些其他匿名任务)

module.exports = function(grunt) {

  'use strict';      

    grunt.loadNpmTasks('grunt-contrib-uglify');

    uglify: {
        options: {
            sourceMap: 'app/map/source-map.js'
        },
        files: {
            'app/dist/sourcefiles.min.js': [
                'app/test_js/test.js'
              ]
        }
    }
Run Code Online (Sandbox Code Playgroud)

};

然后我跑:

grunt uglify
Run Code Online (Sandbox Code Playgroud)

但我一直收到以下错误:

Warning: Maximum call stack size exceeded Use --force to continue.
Run Code Online (Sandbox Code Playgroud)

如果我使用force,那么grunt任务永远不会停止运行.

谁能告诉我哪里出错了?我正在撕裂我的头发.

gruntjs

4
推荐指数
1
解决办法
5157
查看次数

标签 统计

gruntjs ×1