Skip to content

Instantly share code, notes, and snippets.

@anton-gorbikov

anton-gorbikov/gruntfile.js Secret

Created Apr 14, 2018
Embed
What would you like to do?
Getting started with Grunt
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
requirejs: {
compile: {
options: {
baseUrl: "javascript",
mainConfigFile: "javascript/index.js",
name: "index",
out: "javascript/optimized.js"
}
}
}
});
// Requirejs
grunt.loadNpmTasks('grunt-contrib-requirejs');
// Default task(s).
grunt.registerTask('default', ['requirejs']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment