Comments (13)
能提供更详细的信息吗?electron-vue-cli4是指https://github.com/nklayman/vue-cli-plugin-electron-builder这个吗?
from screenshots.
应该是解析作者编译后的index.html文件里边的css、js的问题,缺少对webpack配置,应该是这个意思,只是我不知道咋配置。。。
from screenshots.
index.html为啥还要经过webpack呢,请在主进程中调用本插件
from screenshots.
我在主程序new了之后,程序就报这个错,启都起不了
from screenshots.
你检查一下你cli的配置吧,一般项目主进程只需要bable-loader就好了,不需要其他的loader
from screenshots.
from screenshots.
{
externals: {
'electron-screenshots': 'require("electron-screenshots")'
}
}
webpack配置一下这个
from screenshots.
这个也是有的
from screenshots.
你输出最终配置看看吧,都排除了的不打包的东西,应该是不会再经过webpack处理的
from screenshots.
from screenshots.
请注意在electronBuilder的配置里面去配置,你现在的vue.config.js里面会启动两个webpack,所以你要搞清楚,你是在哪个webpack里面配置的
from screenshots.
谢谢,就是这个原因
from screenshots.
谢谢,就是这个原因
你好请问下最后怎么改呢
from screenshots.
Related Issues (20)
- 打包在window上正常,但打包到在linux arm点击无效 HOT 4
- 0.5.20升级0.5.21后,linux(统信)截图时无法触发screenshots.$win.on('focus') HOT 1
- 找不到`node-screenshots.win32-x64-msvc.node`文件 HOT 6
- 希望能像微信QQ一样能默认选中窗口 HOT 1
- 在electron-vite里使用无法使用 HOT 6
- 在触摸屏下无法使用。。。
- 能支持windows端跨屏载图吗 HOT 1
- electron 工程主进程打包使用webpack 设置了externals,electron-forge 打出包后运行报错 HOT 1
- electron style cursor
- 关于该插件优化建议 HOT 1
- vite-electron-vue3-ts项目,本地使用正常,打包后报错 HOT 7
- 升级到0.5.24(及以上)后报错:UnhandledPromiseRejectionWarning: TypeError: Screenshots is not a constructor HOT 2
- 内存得不到释放 HOT 1
- [Mac] startCapture后 Command+Tab快捷键仍然起作用
- windows上,先hide窗口再截图,会截到窗口的虚影,监听窗口hide事件再截图也无效 HOT 3
- 截图后事件回调都不触发,粘贴到微信或者qq是可以获取到所截图片的
- 成功回调screenshots.on会随着裁切的次数进行累积的触发 HOT 2
- win 10 截取 前需先隐藏窗口,我使用win.hide() 后截图依然显示窗口
- 使用提供的esc 关闭截图方法后,其余应用程序esc 都失效了 HOT 1
- [commonjs--resolver] node_modules/node-screenshots-darwin-x64/node-screenshots.darwin-x64.node (1:0): Unexpected character '�' (Note that you need plugins to import files that are not JavaScript)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screenshots.