Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = function(grunt) {
- grunt.initConfig({
- concat: {
- dist: {
- src: ['src/foo.js', 'src/bar.js'],
- dest: 'dist/output.js'
- }
- },
- jshint: {
- beforeconcat: ['src/foo.js', 'src/bar.js'],
- afterconcat: ['dist/output.js']
- },
- sass: { // Task
- dist: { // Target
- options: { // Target options
- style: 'expanded'
- },
- files: { // Dictionary of files
- 'css/calculator.css': 'css/calculator.scss'
- }
- }
- },
- uglify: {
- options: {
- mangle: false
- },
- my_target: {
- files: {
- 'dest/output.min.js': ['src/input.js']
- }
- }
- },
- cssmin: {
- options: {
- shorthandCompacting: false,
- roundingPrecision: -1
- },
- target: {
- files: {
- 'output.css': ['foo.css', 'bar.css']
- }
- }
- },
- watch: {
- files: ['css/calculator.scss'],
- tasks: ['sass']
- }
- });
- grunt.loadNpmTasks('grunt-contrib-concat');
- grunt.loadNpmTasks('grunt-contrib-uglify');
- grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.loadNpmTasks('grunt-contrib-sass');
- grunt.loadNpmTasks('grunt-contrib-cssmin');
- grunt.loadNpmTasks('grunt-contrib-watch');
- grunt.registerTask('default', ['watch']);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement