Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Refactor #47

Merged
merged 12 commits into from Aug 16, 2017

automate version in min and map file name

These changes will let update the min and map file name according to the package version.
  • Loading branch information
Shwetajain148
Shwetajain148 committed Aug 9, 2017
commit 1670609a981781ea3c99d7650e322b2db4e5a90b
@@ -1,15 +1,17 @@
module.exports = function (grunt) {
var packageJson = grunt.file.readJSON('package.json');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
pkg: packageJson,
uglify: {
options: {
sourceMap: true,
sourceMapName: 'src/loggly.tracker-2.1.min.map'
sourceMapName: 'src/loggly.tracker-' + packageJson.version + '.min.map'
},
main: {
files: {
'src/loggly.tracker-2.1.min.js' : ['src/loggly.tracker.js']
}
files: [{
src: 'src/loggly.tracker.js',
dest: 'src/loggly.tracker-' + packageJson.version + '.min.js'
}]
}
}
});
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.