Skip to content

Commit 8d7aa11

Browse files
carbonirisGuillaume Chau
authored and
Guillaume Chau
committed
Use html doctype for vue-pug and vue-jade (fixes #273) (#274)
* Update vue-pug.js * Update vue-jade.js
1 parent 476e7fd commit 8d7aa11

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/vue-jade/vue-jade.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { Meteor } from 'meteor/meteor';
77
global.vue.lang.jade = Meteor.wrapAsync(function({ source, basePath, inputFile }, cb) {
88
var fn = jade.compile(source, {
99
filename: basePath,
10-
fileMode: true
10+
fileMode: true,
11+
doctype: 'html'
1112
});
1213

1314
var html = fn();

packages/vue-pug/vue-pug.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { Meteor } from 'meteor/meteor';
77
global.vue.lang.pug = Meteor.wrapAsync(function({ source, basePath, inputFile }, cb) {
88
var fn = pug.compile(source, {
99
filename: basePath,
10-
fileMode: true
10+
fileMode: true,
11+
doctype: 'html'
1112
});
1213

1314
var html = fn();

0 commit comments

Comments
 (0)