mod-build 3.6.94 → 3.6.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.95
4
+
5
+ - Updating the `gulp-uglify` package to use a newer version of `gulp-uglify-es` as we have had issues with `gulp-uglify` in the past
6
+
3
7
  ## 3.6.94
4
8
 
5
9
  - Fixed bugs in seasonal updates
@@ -1,3 +1,5 @@
1
+ let uglify = require('gulp-uglify-es').default;
2
+
1
3
  const babelOpts = {
2
4
  presets: ['@babel/preset-env']
3
5
  };
@@ -12,7 +14,7 @@ module.exports.html = function(gulp, gulpPlugins, siteSettings) {
12
14
  searchPath: [siteSettings.tmpFolder, './']
13
15
  }))
14
16
  .pipe(gulpPlugins.if('*.js', gulpPlugins.babel(babelOpts)))
15
- .pipe(gulpPlugins.if('*.js', gulpPlugins.uglify()))
17
+ .pipe(gulpPlugins.if('*.js', uglify()))
16
18
  .pipe(gulpPlugins.if('*.css', gulpPlugins.cleanCss(cleanCssOpts)))
17
19
  .pipe(gulpPlugins.if('*.css', gulpPlugins.csso()))
18
20
  .pipe(gulpPlugins.revReplace())
@@ -39,7 +41,7 @@ module.exports.js = function(gulp, gulpPlugins, siteSettings) {
39
41
  return function() {
40
42
  return gulp.src([siteSettings.srcFolder + '/**/*.js', '!' + siteSettings.srcFolder + '/data/**/*.js'])
41
43
  .pipe(gulpPlugins.babel(babelOpts))
42
- .pipe(gulpPlugins.uglify())
44
+ .pipe(uglify())
43
45
  .on('error', function(err) {
44
46
  console.log(err);
45
47
  this.end();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.94",
3
+ "version": "3.6.95",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -50,7 +50,7 @@
50
50
  "gulp-size": "^2.1.0",
51
51
  "gulp-sourcemaps": "^2.6.0",
52
52
  "gulp-tap": "^2.0.0",
53
- "gulp-uglify": "^2.1.2",
53
+ "gulp-uglify-es": "^3.0.0",
54
54
  "gulp-useref": "^5.0.0",
55
55
  "husky": "^1.3.1",
56
56
  "imagemin-mozjpeg": "^7.0.0",