V
V
Vyacheslav Lebedev2015-05-31 18:37:50
Grunt.js
Vyacheslav Lebedev, 2015-05-31 18:37:50

How to configure grunt-revizor?

Good evening!
I do everything for mana , but I don’t understand why he does 2 things, not the way he should.
1. Spits out files (-min) in the same folder where they are.
2. Does not compress class names.
html:
<div class="testClassesLong--">long class</div>
css:

.testClassesLong-- {
    color: red;
}

gruntfile:
module.exports = function(grunt) {
  grunt.initConfig({
    revizor: {
      options: {},
      src: ['test/test.html', 'test/test.css'],
      dest: 'build/'
    }
  });
  grunt.loadNpmTasks('grunt-revizor');
  return grunt.registerTask('default', ['revizor']);
};

I don't see any errors or maybe something is missing :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Lebedev, 2015-05-31
@slavikse

Specified in an obvious way: namePrefix: '--'
Confusing in mana this line :
Type: String Default value: '--'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question