Skip to content

Commit 7d7322a

Browse files
committed
2.0.1
1 parent 322d434 commit 7d7322a

File tree

5 files changed

+25
-11
lines changed

5 files changed

+25
-11
lines changed

app/js/common.min.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$(function(){});

app/js/scripts.min.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/libs/jquery/dist/jquery.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,23 @@ var gulp = require('gulp'),
1414
notify = require("gulp-notify");
1515

1616
// Скрипты проекта
17-
gulp.task('js', function() {
17+
18+
gulp.task('common-js', function() {
19+
return gulp.src([
20+
'app/js/common.js',
21+
])
22+
.pipe(concat('common.min.js'))
23+
.pipe(uglify())
24+
.pipe(gulp.dest('app/js'));
25+
});
26+
27+
gulp.task('js', ['common-js'], function() {
1828
return gulp.src([
1929
'app/libs/jquery/dist/jquery.min.js',
20-
'app/js/common.js', // Всегда в конце
30+
'app/js/common.min.js', // Всегда в конце
2131
])
2232
.pipe(concat('scripts.min.js'))
23-
.pipe(uglify())
33+
// .pipe(uglify()) // Минимизировать весь js (на выбор)
2434
.pipe(gulp.dest('app/js'))
2535
.pipe(browserSync.reload({stream: true}));
2636
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "optimizedhtml",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OptimizedHTML - Start HTML Template",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)