Problem solved by installing WebPack.
Oct 17, 2016
3
Level 6
gulp --production = Browserify don't close tr/td/th tags from Vue template
Shortly, Browserify don't close thead, tr, th, td tags, when running "gulp --production".
Difference in resulting Javascript file:
1 ) gulp default
.template = "<div><table><thead><tr><th>Head</th></tr></thead>
<tbody><tr><td>Content</td></tr></tbody></table></div>" .
2 ) gulp --production
.template="<div><table><thead><tr><th>Head<tbody><tr><td>Content</table></div>" .
As you see in --production mode there are no ending tags and browser ends those tags wrong, creating:
"<div><table><thead><tr><th>Head<tbody><tr>
<td>Content</td></tr></th></tr></thead></table></div>"
So Content is inside thead.
Please help!
Using:
"gulp": "^3.9.1",
"jquery": "^3.1.0",
"laravel-elixir": "^6.0.0-9",
"laravel-elixir-browserify-official": "^0.1.3",
"laravel-elixir-vueify": "^2.0.0",
Simple .Vue file:
<template>
<div>
<table>
<thead>
<tr>
<th>Head</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content</td>
</tr>
</tbody>
</table>
</div>
</template>
<script>
export default{
}
</script>
Please or to participate in this conversation.