mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
Some changes in gulpfile.js
This commit is contained in:
parent
c87b600196
commit
89992f11a5
36743
dist/math.js
vendored
36743
dist/math.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/math.map
vendored
Normal file
1
dist/math.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/math.map.js
vendored
1
dist/math.map.js
vendored
File diff suppressed because one or more lines are too long
15
dist/math.min.js
vendored
15
dist/math.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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/
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user