Home | Archives | Categories | Tags | About |
|
本文主要介绍Electron应用如何打包成msi和exe文件。
由于介绍Electron打包成msi和exe的文章很少,官方的文档也一笔带过,在研究的过程中踩了很多坑,所以写下此文,给其他人一个参考。
关于Electron基础知识的文章,官方文档很详细,在此不再赘述,还没入门的童鞋可以看看方的入门文档:
https://github.com/electron/electron/blob/master/docs-translations/zh-CN/tutorial/quick-start.md
1 | var grunt = require('grunt'); var path = require('path'); grunt.cli({ gruntfile: __path + '/Gruntfile.js' }) |
还可以直接设置默认任务:1
grunt.registerTask("default", [`project-watch:${project_config.projectName}`]);
1 | const path = require('path'); |
待续…
最近折腾了下sublime,同事说很漂亮,就分享一下。
先上美图镇楼:
本文记录一些我在自学React过程中遇到的问题
React在ES6中去掉了getInitialState函数,需要写在constructor中
The API (via ‘extends React.Component’) is similar to React.createClass with the exception of getInitialState. Instead of providing a separate getInitialState method, you set up your own state property in the constructor.
非ES6写法:
1 | var CommentBox = React.createClass({ |
今天把博客部署到coding.net上,想加快国内访问速度,部署之后发现依然很慢,F12了一下,发现了这货:
原来引用了google字体库,21秒。。。卡的就是你啊。。