Skip to content

Commit

Permalink
revert to uglify to fix color picker failure
Browse files Browse the repository at this point in the history
to close #791
  • Loading branch information
Dave Conway-Jones committed Jan 3, 2023
1 parent d673345 commit d2e9ebf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var
rename = require('gulp-rename'),
replace = require('gulp-replace'),
sass = require('gulp-sass')(require('sass')),
terser = require('gulp-terser'),
uglify = require('gulp-uglify'),
gutil = require('gulp-util'),
path = require('path'),
streamqueue = require('streamqueue');
Expand Down Expand Up @@ -81,7 +81,7 @@ function js() {
.pipe(gulp.dest('dist/'));

return streamqueue({ objectMode:true }, scripts, templates)
.pipe(gulpif(/[.]min[.]js$/, gutil.noop(), terser()))
.pipe(gulpif(/[.]min[.]js$/, gutil.noop(), uglify()))
.pipe(concat('app.min.js'))
.pipe(header(fs.readFileSync('license.js')))
.pipe(eol('\n'))
Expand Down
8 changes: 4 additions & 4 deletions src/gridstack-extra.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ $gridstack-columns: 11 !default;
min-width: calc(100% / $columns);

@for $i from 1 through $columns {
&[data-gs-width='#{$i}'] { width: calc(100% / $columns) * $i; }
&[data-gs-x='#{$i}'] { left: calc(100% / $columns) * $i; }
&[data-gs-min-width='#{$i}'] { min-width: calc(100% / $columns) * $i; }
&[data-gs-max-width='#{$i}'] { max-width: calc(100% / $columns) * $i; }
&[data-gs-width='#{$i}'] { width: calc(100% / $columns * $i); }
&[data-gs-x='#{$i}'] { left: calc(100% / $columns * $i); }
&[data-gs-min-width='#{$i}'] { min-width: calc(100% / $columns * $i); }
&[data-gs-max-width='#{$i}'] { max-width: calc(100% / $columns * $i); }
}
}
}
Expand Down

0 comments on commit d2e9ebf

Please sign in to comment.