Skip to content

Commit

Permalink
output .min.ext files
Browse files Browse the repository at this point in the history
  • Loading branch information
endorama committed Jan 21, 2014
1 parent 8d90e3b commit 9a31068
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = function(grunt) {

grunt.initConfig({
cmpnt: grunt.file.readJSON('bower.json'),
banner: '/*! ngTable v<%= cmpnt.version %> by Vitalii Savchuk(esvit666@gmail.com) - ' +
banner: '/*! ngTable v<%= cmpnt.version %> by Vitalii Savchuk(esvit666@gmail.com) - ' +
'https://github.com/esvit/ng-table - New BSD License */\n',
clean: {
working: {
Expand All @@ -20,11 +20,11 @@ module.exports = function(grunt) {
uglify: {
js: {
src: ['ng-table.src.js'],
dest: 'ng-table.js',
dest: 'ng-table.min.js',
options: {
banner: '<%= banner %>',
sourceMap: function(fileName) {
return fileName.replace(/\.js$/, '.map');
return fileName.replace(/\.min\.js$/, '.map');
}
}
}
Expand All @@ -46,14 +46,14 @@ module.exports = function(grunt) {
less: {
css: {
files: {
'ng-table.css': 'src/styles/ng-table.less'
'ng-table.min.css': 'src/styles/ng-table.less'
}
}
},
cssmin: {
css: {
files: {
'ng-table.css': 'ng-table.css'
'ng-table.min.css': 'ng-table.min.css'
},
options: {
banner: '<%= banner %>'
Expand Down Expand Up @@ -95,4 +95,4 @@ module.exports = function(grunt) {
'cssmin'
]);

};
};
Loading

0 comments on commit 9a31068

Please sign in to comment.