Warning: mysqli_query(): (HY000/1021): Disk full (C:\xampp\tmp\#sql6704_4349c_1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in C:\xampp\htdocs\wordpress\wp-includes\wp-db.php on line 2033
Leaflet的打包构建 - ZGEO博客

1、下载源码

GitHub下载:https://github.com/Leaflet/Leaflet

国内极速下载:https://gitee.com/mirrors/leaflet.git

2、安装npm依赖

npm install/npm i

3、安装phantomjs,下载安装包(phantomjs用npm i下载超慢)

http://npm.taobao.org/mirrors/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2

解压压缩包,配置环境变量vi /etc/profile,重载环境变量source vi /etc/profile

tar -jxvf phantomjs-2.1.1-linux-x86_64.tar.bz2

4、重新安装npm依赖

npm i

5、执行打包操作(可以在packe.json中看到打包的命令)

npm run build

发表评论

邮箱地址不会被公开。 必填项已用*标注