我们用vue-cli搭建的项目执行npm build后本地打开页面空白,如果才能查看npm run build之后的结果呢 首先我们看一下提示 Tip: built files are meant to be served over an HTTP server. Opening index.html over file:// won't work. 这段话的意思就是说:构建文件务必放在一个HTTP服务器.直接打开index.html文件将不工作,那如何本地查看呢:(1)到项目目录下的confi
electron 起步 为什么要学 Electron,因为公司需要调试 electron 的应用. Electron 是 node 和 chromium 的结合体,可以使用 JavaScript,HTML 和 CSS 等 Web 技术创建桌面应用程序,支持 Mac.Window 和 Linux 三个平台. electron 的成功案例有许多,比如大名鼎鼎的 vscode. hello-world 官网有个快速启动的应用程序,我们将其下载到本地运行看一下. # Clone this reposit
Usually we run : npm start to start an app, then we we might call other script to do something: npm build && nodemon app Actaully we can use "prestart" to simpify this, because npm will check if there is "prestart" script, if t