mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-06 14:06:34 +02:00
Implement redesign first stage
This commit is contained in:
47
Gruntfile.js
Normal file
47
Gruntfile.js
Normal file
@@ -0,0 +1,47 @@
|
||||
module.exports = function(grunt) {
|
||||
// Project configuration
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
less: {
|
||||
dist: {
|
||||
options: {
|
||||
cleancss: true,
|
||||
ieCompat: true
|
||||
},
|
||||
files: {
|
||||
"css/all.css": "less/all.less"
|
||||
}
|
||||
}
|
||||
},
|
||||
postcss: {
|
||||
options: {
|
||||
map: true,
|
||||
processors: [
|
||||
require('autoprefixer')({
|
||||
browsers: ['last 2 versions', 'ie 9']
|
||||
})
|
||||
]
|
||||
},
|
||||
dist: {
|
||||
src: 'css/all.css'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
less: {
|
||||
files: ['less/**/*.less'],
|
||||
tasks: ['less:dist', 'postcss:dist'],
|
||||
options: {
|
||||
spawn: false
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Load plugins
|
||||
grunt.loadNpmTasks('grunt-contrib-less');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-postcss');
|
||||
|
||||
// Default task(s)
|
||||
grunt.registerTask('default', ['less', 'postcss:dist']);
|
||||
};
|
Reference in New Issue
Block a user