Some changes in gulpfile.js

This commit is contained in:
josdejong 2014-02-09 22:04:27 +01:00
parent c87b600196
commit 89992f11a5
5 changed files with 18900 additions and 17869 deletions

36743
dist/math.js vendored

File diff suppressed because it is too large Load Diff

1
dist/math.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/math.map.js vendored

File diff suppressed because one or more lines are too long

15
dist/math.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -5,14 +5,14 @@ var fs = require('fs'),
uglify = require('uglify-js');
var ENTRY = './index.js',
HEADER = './lib/header.js',
FILE = 'math.js',
FILE_MIN = 'math.min.js',
MAP = 'math.map.js',
FILE_MAP = 'math.map',
DIST = './dist',
HEADER = './lib/header.js',
MATH_JS = DIST + '/' + FILE,
MATH_MIN_JS = DIST + '/' + FILE_MIN,
MATH_MAP_JS = DIST + '/' + MAP;
MATH_MAP_JS = DIST + '/' + FILE_MAP;
// generate banner with today's date and correct version
function createBanner() {
@ -42,7 +42,8 @@ var webpackConfig = {
};
var uglifyConfig = {
outSourceMap: MAP,
// FIXME: source map is generated, but math.min.js misses a link to this source file
outSourceMap: FILE_MAP,
output: {
comments: /@license/
}