Skip to content

Instantly share code, notes, and snippets.

Created September 3, 2014 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/91fe8b45a81acb1cb31f to your computer and use it in GitHub Desktop.
Save anonymous/91fe8b45a81acb1cb31f to your computer and use it in GitHub Desktop.
Arquivo Gruntfile.js do gruntJs
//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