目标 js/build/global.min.js 未写入,因为 src 文件为空

问题描述

我正在使用 vs 代码并尝试在该项目上运行 grunt,但在我创建的 build.js 文件夹中没有创建任何文件

这是我的 grunt 文件


module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),uglify: {
            build: {
                src: 'js/global.js',dest: 'js/build/global.min.js'
            }

        }
    });

    // Load the plugin that provides the "uglify" task.
    grunt.loadNpmtasks('grunt-contrib-uglify');

    // Default task(s).
    grunt.registerTask('default',['uglify']);

};

this is a picture of the project files and the grunt file

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)