O
O
Oleg Pugovkin2016-07-30 15:39:40
Sass
Oleg Pugovkin, 2016-07-30 15:39:40

Prepros does not compile files. How to fix?

When compiling, it gives out: 5a6c428b12724f068a09cc50d8c10261.jpg Gentlemen, how to fix it? Or would you recommend a good compiler.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2016-07-30
@Heretic888

I recommend Gulp with libsass. If you can't set it up, then Grunt is easier.
gruntfile.js:

module.exports = function(grunt) {
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-compass');
  grunt.loadNpmTasks('grunt-newer');
  grunt.initConfig({
    uglify: {
      my_target: {
        files: {
          'public_html/js/script.js': ['_/components/js/*.js']
        }
      }
    },
    compass: {
      dev: {
        options: {
          config: 'config.rb'
        }
      }
    },
    watch: {
      options: { livereload: true },
      scripts: {
        files: ['_/components/js/*.js'],
        tasks: ['newer:uglify']
      },
      sass: {
        files: ['_/components/sass/*.scss'],
        tasks: ['compass:dev']
      },
      html: {
        files: ['*.html']
      }
    }
  });
  grunt.registerTask('default', 'watch');
};

config.rb:
#Compass config

require "susy"
require "breakpoint"

css_dir = "public_html/css"
sass_dir = "_/components/sass"
sass_options = {:sourcemap => true}
javascripts_dir = "public_html/js"
output_style = :compressed
# or :nested or :compact or :compressed
Encoding.default_external = "UTF-8"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question