Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vue.js/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何使用nuxt和babel生成Web组件?_Javascript_Vue.js_Nuxt.js_Babeljs - Fatal编程技术网

Javascript 如何使用nuxt和babel生成Web组件?

Javascript 如何使用nuxt和babel生成Web组件?,javascript,vue.js,nuxt.js,babeljs,Javascript,Vue.js,Nuxt.js,Babeljs,当我开始构建nuxt js项目时,我写道: nuxt build or npm run build 执行的结果是包含index.html的dist文件夹 <html> <head> </head> <body> <div id="__nuxt"> <style> </style> <div class="sk-fol

当我开始构建nuxt js项目时,我写道:

nuxt build or npm run build
执行的结果是包含index.html的dist文件夹

<html>

<head>
</head>

<body>
    <div id="__nuxt">
        <style>
        </style>
        <div class="sk-folding-cube">
            <div class="sk-cube1 sk-cube"></div>
            <div class="sk-cube3 sk-cube"></div>
        </div>
    </div>
    <script type="text/javascript" src="/_nuxt/d3be7369ce502214a6cb.js"></script>
   </body>
  </html>

我想知道是否有任何方法可以使用babel或其他方法为nuxt js项目生成Web组件

我在nuxt的github中只有这个资源,但它很旧

我正在对这个主题进行自己的研究,目前正在使用nuxt自定义元素()构建一个原型。您可以直接从nuxt.config.js配置web组件。构建项目时,配置的组件将自动生成,可以从构建文件夹中提取,也可以稍后直接在服务器端使用nuxt交付