Skip to content

Instantly share code, notes, and snippets.

@anton-gorbikov
Created April 14, 2018 20:00
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 anton-gorbikov/9c6564bf44ac3e74c198bed8ed221e13 to your computer and use it in GitHub Desktop.
Save anton-gorbikov/9c6564bf44ac3e74c198bed8ed221e13 to your computer and use it in GitHub Desktop.
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