Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cssmin.js « config « tasks - github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4f1101a5e2a3153c89368ae4c5d875470fe420f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var randToken = require('rand-token');

module.exports = function(grunt) {
  grunt.config.set('cssmin', {
    // Minify `style.css` file into `style.min.css`
    prod: {
      files: [{
        expand: true,
        cwd: 'static/css',
        src: ['style.css'],
        dest: 'static/css',
        ext: '-' + randToken.generate(60).toLocaleLowerCase() + '.min.css'
      }]
    }
  });

  grunt.loadNpmTasks('grunt-contrib-cssmin');
};