grunt uglify task failing

后端 未结 2 584
猫巷女王i
猫巷女王i 2021-01-18 07:01

When running grunt, I get the following error:

Warning: Unable to write \"client/dist/js/build.js\" file (Error code: undefined). Use --force to conti

2条回答
  •  孤城傲影
    2021-01-18 07:44

    Assuming your Grunt Version is 0.4.0, AFAIK you are not using the most recent Syntax (See https://github.com/gruntjs/grunt-contrib-uglify#usage-examples).

    Try

    uglify: {
        build: {
            files: {
                'client/dist/js/build.js': ['client/src/js/*.js']
            }
        }
    }
    

    I am also not sure if the wildcards are handled properly.

提交回复
热议问题