Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sentsim committed May 8, 2021
1 parent ee6946d commit 2296f2b
Show file tree
Hide file tree
Showing 6 changed files with 369 additions and 223 deletions.
4 changes: 2 additions & 2 deletions dist/laydate.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/theme/default/laydate.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
layDate构建
*/

/*!
* laydate build
*/

var pkg = require('./package.json');

Expand All @@ -23,7 +24,11 @@ var task = {
}))
.pipe(gulp.dest('./dist'));

return gulp.src('./src/laydate.js').pipe(uglify())
return gulp.src('./src/laydate.js').pipe(uglify({
output: {
ascii_only: true //escape Unicode characters in strings and regexps
}
}))
.pipe(header('/*! <%= pkg.realname %> v<%= pkg.version %> | <%= pkg.description %> | The <%= pkg.license %> License */\n ;', {pkg: pkg}))
.pipe(gulp.dest('./dist'));

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "layui-laydate",
"realname": "layDate",
"version": "5.2.1",
"version": "5.3.0",
"description": "日期与时间组件",
"main": "src/laydate.js",
"license": "MIT",
Expand Down
Loading

0 comments on commit 2296f2b

Please sign in to comment.