Jade has been renamed to "pug" due to a trademark problem.
See: pugjs/pug#2184
-> you should replace "jade" with "pug" in the package.json and support "pug" templates:
<template lang="pug">
.hello
h1 {{ msg }}
</template>
lang="jade" still should be allowed.
庐@eschmid72
Same as : https://github.com/vuejs/vueify/issues/79
Thanks !
vue-loader uses consolidate.js, which doesn't support pug yet: https://github.com/tj/consolidate.js/pull/232
pug is now in [email protected]
Now that consolidate has support for pug in a patch release, I don't think there's anything we need to do in vue-loader. Just do a fresh install to get latest deps, and then npm install pug should suffice.
:class="variable" doesn't work with pug...
":" is not valid as the start or end of an un-quoted attribute.
@happierall Maybe you can try this:
':class'='variable'
Writing in full, i.e. v-bind:class worked for me in pug.
both shortcut and full syntax worked for me.
:class="{ visible: !isStart }"
Most helpful comment
Now that
consolidatehas support forpugin a patch release, I don't think there's anything we need to do invue-loader. Just do a fresh install to get latest deps, and thennpm install pugshould suffice.