Created
September 3, 2014 17:09
-
-
Save anonymous/91fe8b45a81acb1cb31f to your computer and use it in GitHub Desktop.
Arquivo Gruntfile.js do gruntJs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Gruntfile.js | |
module.exports = function(grunt) { | |
//Inicializando o objeto de configuração | |
grunt.initConfig({ | |
// Todas as configuraçoẽs de tarefas que vamos definir vão aqui | |
concat: { | |
options: { | |
separator: ';', | |
}, | |
javascript: { | |
src: ['./vendor/components/js/funcs.js','./vendor/components/js//common.js'], | |
dest: './public/assets/js/frontend.js', | |
}, | |
}, | |
uglify{ | |
options: { | |
mangle: false // não muda os nomes das funções e variáveis | |
}, | |
dist: { | |
files: { | |
'./public/assets/js/frontend.js': './public/assets/js/frontend.js' | |
} | |
} | |
} | |
}); | |
// Carregar os plugins | |
grunt.loadNpmTasks('grunt-contrib-concat'); | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment