From the command line try:
compass compile --no-line-comments
If you use Grunt and grunt-contrib-compass , then noLineComments: true , for example
module.exports = function (grunt) { grunt.initConfig({ watch: { src: { files: ['**/*.scss', '**/*.php'], tasks: ['compass:dev'] }, options: { livereload: true } }, compass: { dev: { options: { sassDir: 'sass', cssDir: 'css', imagesPath: 'img', noLineComments: true, outputStyle: 'compressed' } } } }); grunt.loadNpmTasks('grunt-contrib-compass'); grunt.loadNpmTasks('grunt-contrib-sass'); grunt.loadNpmTasks('grunt-contrib-watch'); };
then do: grunt compass .
source share