mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix variable references when debugging
This commit is contained in:
parent
7fcdf35438
commit
ddfe660f0a
10
gulpfile.js
10
gulpfile.js
@ -70,6 +70,10 @@ const babelifyOptions = {
|
|||||||
comments: false,
|
comments: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const uglifyOptions = {
|
||||||
|
mangle: false,
|
||||||
|
};
|
||||||
|
|
||||||
// Used for autoprefixing css properties (same as Bootstrap Aplha.2 defaults)
|
// Used for autoprefixing css properties (same as Bootstrap Aplha.2 defaults)
|
||||||
const supportedBrowsers = [
|
const supportedBrowsers = [
|
||||||
'Chrome >= 35',
|
'Chrome >= 35',
|
||||||
@ -327,7 +331,7 @@ gulp.task('bundle-lib', function bundleLib() {
|
|||||||
.pipe(order([`**/${bundleFileName}`, '**/chosen.js']))
|
.pipe(order([`**/${bundleFileName}`, '**/chosen.js']))
|
||||||
.pipe(sourcemaps.init({ loadMaps: true }))
|
.pipe(sourcemaps.init({ loadMaps: true }))
|
||||||
.pipe(concat(bundleFileName, { newLine: '\r\n;\r\n' }))
|
.pipe(concat(bundleFileName, { newLine: '\r\n;\r\n' }))
|
||||||
.pipe(uglify())
|
.pipe(uglify(uglifyOptions))
|
||||||
.pipe(sourcemaps.write('./'))
|
.pipe(sourcemaps.write('./'))
|
||||||
.pipe(gulp.dest(PATHS.ADMIN_JS_DIST));
|
.pipe(gulp.dest(PATHS.ADMIN_JS_DIST));
|
||||||
});
|
});
|
||||||
@ -353,7 +357,7 @@ gulp.task('bundle-legacy', function bundleLeftAndMain() {
|
|||||||
.pipe(source(bundleFileName))
|
.pipe(source(bundleFileName))
|
||||||
.pipe(buffer())
|
.pipe(buffer())
|
||||||
.pipe(sourcemaps.init({ loadMaps: true }))
|
.pipe(sourcemaps.init({ loadMaps: true }))
|
||||||
.pipe(uglify())
|
.pipe(uglify(uglifyOptions))
|
||||||
.pipe(sourcemaps.write('./'))
|
.pipe(sourcemaps.write('./'))
|
||||||
.pipe(gulp.dest(PATHS.ADMIN_JS_DIST));
|
.pipe(gulp.dest(PATHS.ADMIN_JS_DIST));
|
||||||
});
|
});
|
||||||
@ -393,7 +397,7 @@ gulp.task('bundle-framework', function bundleBoot() {
|
|||||||
.pipe(source(bundleFileName))
|
.pipe(source(bundleFileName))
|
||||||
.pipe(buffer())
|
.pipe(buffer())
|
||||||
.pipe(sourcemaps.init({ loadMaps: true }))
|
.pipe(sourcemaps.init({ loadMaps: true }))
|
||||||
.pipe(uglify())
|
.pipe(uglify(uglifyOptions))
|
||||||
.pipe(sourcemaps.write('./'))
|
.pipe(sourcemaps.write('./'))
|
||||||
.pipe(gulp.dest(PATHS.ADMIN_JS_DIST));
|
.pipe(gulp.dest(PATHS.ADMIN_JS_DIST));
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user