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
Post a Comment