javascript - vueify+node: compile separate .vue files -


is possible setup vueify way, compiles single .vue files corresponding .js files?

for example:

input: my-component.vue

<template>     <div>{{ message }}</div> </template> <script>     module.exports = {         data() {             return {                 message: 'hello world',             };         },     }; </script> 

output: my-component.js

vue.component('my-component', {    template: '<div>{{ message }}</div>',    data() {        return {            message: 'hello world',        };    }, }); 


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -