Answer the question
In order to leave comments, you need to log in
Prepros does not compile files. How to fix?
When compiling, it gives out: 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
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');
};
#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 questionAsk a Question
731 491 924 answers to any question