Skip to content

Commit 60b1dcf

Browse files
committed
Add gulp-prettify plugin
1 parent 2776a09 commit 60b1dcf

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

build/tasks/app-pages.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ module.exports.task = function(gulp, plugins, paths) {
5656
// Flatten structure
5757
.pipe(plugins.flatten())
5858

59+
// pretify html structure
60+
.pipe(plugins.prettify({
61+
indent_size: 4
62+
}))
63+
5964
// Output
6065
.pipe(gulp.dest(config.destDir));
6166

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"gulp-hb": "^2.6.1",
3030
"gulp-less": "^3.0.3",
3131
"gulp-load-plugins": "^1.0.0-rc.1",
32+
"gulp-prettify": "^0.4.0",
3233
"gulp-rename": "^1.2.2",
3334
"gulp-sass": "^2.1.0",
3435
"gulp-uglify": "^1.2.0",

src/app/items/list/items-list-page.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ items:
5050
Items
5151
<a href="item-editor.html" class="btn btn-primary btn-sm rounded-s">
5252
Add New
53-
</a>
54-
<div class="action dropdown">
53+
</a><!--
54+
--><div class="action dropdown">
5555
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
5656
More actions...
5757
</button>

0 commit comments

Comments
 (0)