grunt 用grunt-contrib-cssmin压缩css中文乱码

module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
// banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> /\n'
},
my_target: {
files: [
{
expand: true,
//相对路径
cwd: './src/',
src: '
.js',
dest: 'dest/js'
}
]
}
},
//压缩css
cssmin: {
//文件头部输出信息
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> /\n',
beautify: {
ascii_only: false, //
*这句不管用**

             }
         },
         my_target: {
             files: [
                {
                     expand: true,
                    //相对路径
                     cwd: 'css/',
                     src: '*.css',
                     dest: 'dest/css'
               }
        ]
        }
    }

});

// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
// Default task(s).
grunt.registerTask('my_target', ['uglify','cssmin']);

};

这个库不支持中文,再压缩了之后,再手动改回来。