Grunt uglify not finding files

后端 未结 2 1674
醉梦人生
醉梦人生 2021-01-20 21:01

I have the following directory structure:

--development 
  -js
    -pages

--js
  -pages

I\'m trying to take all files in development/js/pa

2条回答
  •  面向向阳花
    2021-01-20 21:43

    For anyone else looking the second option above almost worked but I needed to remove the options block and include expand in the files block:

    pages: {
                files: [{
                    expand: true,
                    cwd: 'development/js/page',
                    src: '*.js',
                    dest: 'js/page/',
                    ext : '.min.js',
                }]
                }
    

提交回复
热议问题