Skip to content

Commit

Permalink
Merge pull request #1 from ErinsMatthew/master
Browse files Browse the repository at this point in the history
Added contents of gruntfile.js to README and corrected spacing issue …
  • Loading branch information
hemanth committed Feb 4, 2016
2 parents 2eb1521 + f3e8f4d commit 0c1c900
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,41 @@ The `index.html` looks like:
</html>
```

And the `gruntfile.js` looks like:

```sh
module.exports = function(grunt) {
// load grunt tasks based on dependencies in package.json
require('load-grunt-tasks')(grunt);

grunt.config.init({
useminPrepare: {
html: 'index.html',
options: {
dest: 'dist'
}
},
usemin:{
html:['dist/index.html']
},
copy:{
html: {
src: './index.html', dest: 'dist/index.html'
}
}
});

grunt.registerTask('default',[
'copy:html',
'useminPrepare',
'concat',
'uglify',
'cssmin',
'usemin'
]);
}
```

__On grunting__:

```sh
Expand Down
4 changes: 2 additions & 2 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = function(grunt) {

// load grunt tasks based on dependencies in package.json
require('load-grunt-tasks')(grunt);

grunt.config.init({
Expand All @@ -24,7 +24,7 @@ module.exports = function(grunt) {
'useminPrepare',
'concat',
'uglify',
'cssmin',
'cssmin',
'usemin'
]);
}
Expand Down

0 comments on commit 0c1c900

Please sign in to comment.