gruntjs - grunt mini css html js: just copy to dest for some file -


i'm use grunt task minify static file js,css,html.

but when execute task, found problem.

if in css floder,include gif use. file con't build dest direct.

if don't want use copy plugin.

do u have ideas case?

  uglify: {         build: {             expand: true,             cwd: 'src/js',             src: '**/*.js',             dest: 'dist/js'         }     },     cssmin: {         minify: {             expand: true,             cwd: 'src/css/',             src: ['*.css', '**/*.css'],//, '!*.min.css'             dest: 'dist/css/'         }     } 

cssmin , uglify won't copy gif assets, have using grunt's copy task, configuration this

copy: {   assets: {     expand: true,     cwd: 'src/css',     dest: 'dist/css',     src: '**/*.{gif,png,jpg}'   }, } 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -