【问题标题】:Using Nuxt.js project both with or without electron在有或没有电子的情况下使用 Nuxt.js 项目
【发布时间】:2018-06-13 07:03:40
【问题描述】:

我想配置一个 Nuxt.js 项目,使其能够使用nuxt start 或使用电子运行它。目标是为 Web 应用和电子应用提供相同的代码。

是否可以在同一个项目中结合两种字体?

【问题讨论】:

    标签: electron nuxt.js


    【解决方案1】:

    Nuxt 社区已经有一个electron-template 来实现它。 您可以查看main.js 文件以查看配置或只是使用以下方法初始化项目:

    vue init nuxt-community/electron-template my-project

    链接:https://github.com/nuxt-community/electron-template

    【讨论】:

      【解决方案2】:

      Nuxt 社区模板没有更新。请使用以下 nuxt+electron 样板

      # Install vue-cli and scaffold boilerplate
      npm install -g vue-cli
      vue init michalzaq12/electron-nuxt <project-name>
      

      链接:https://github.com/michalzaq12/electron-nuxt

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-07-09
        • 2020-12-19
        • 2021-12-05
        • 2017-02-22
        • 1970-01-01
        • 2018-08-01
        相关资源
        最近更新 更多