Git Product home page Git Product logo

Comments (13)

nashaofu avatar nashaofu commented on June 10, 2024

能提供更详细的信息吗?electron-vue-cli4是指https://github.com/nklayman/vue-cli-plugin-electron-builder这个吗?

from screenshots.

moom-en avatar moom-en commented on June 10, 2024

应该是解析作者编译后的index.html文件里边的css、js的问题,缺少对webpack配置,应该是这个意思,只是我不知道咋配置。。。

from screenshots.

nashaofu avatar nashaofu commented on June 10, 2024

index.html为啥还要经过webpack呢,请在主进程中调用本插件

from screenshots.

moom-en avatar moom-en commented on June 10, 2024

我在主程序new了之后,程序就报这个错,启都起不了

from screenshots.

nashaofu avatar nashaofu commented on June 10, 2024

你检查一下你cli的配置吧,一般项目主进程只需要bable-loader就好了,不需要其他的loader

from screenshots.

moom-en avatar moom-en commented on June 10, 2024

启动的时候需要编译
1
2

from screenshots.

nashaofu avatar nashaofu commented on June 10, 2024
{
  externals: {
    'electron-screenshots': 'require("electron-screenshots")'
  }
}

webpack配置一下这个

from screenshots.

moom-en avatar moom-en commented on June 10, 2024

这个也是有的

from screenshots.

nashaofu avatar nashaofu commented on June 10, 2024

你输出最终配置看看吧,都排除了的不打包的东西,应该是不会再经过webpack处理的

from screenshots.

moom-en avatar moom-en commented on June 10, 2024

6

from screenshots.

nashaofu avatar nashaofu commented on June 10, 2024

请注意在electronBuilder的配置里面去配置,你现在的vue.config.js里面会启动两个webpack,所以你要搞清楚,你是在哪个webpack里面配置的

from screenshots.

moom-en avatar moom-en commented on June 10, 2024

谢谢,就是这个原因

from screenshots.

moyongqing avatar moyongqing commented on June 10, 2024

谢谢,就是这个原因

你好请问下最后怎么改呢

from screenshots.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.