首页 > 其他 > 详细

Cesium打包命令

时间:2020-01-05 18:23:04      阅读:94      评论:0      收藏:0      [点我收藏+]

1.npm run build

       如果出现错误:[11:21:32] Error: ENOENT: no such file or directory, open ‘D:\WWW\gis\Cesium\Apps\.jshintrc‘

  解决方法:在Apps中添加文件.jshintrc,在Apps/Sandcastle中添加文件.jshintrc。

Apps/.jshintrc

{
  "bitwise": false,
  "camelcase": false,
  "curly": true,
  "eqeqeq": true,
  "forin": true,
  "freeze": true,
  "immed": true,
  "latedef": false,
  "newcap": true,
  "noarg": true,
  "noempty": true,
  "nonbsp": true,
  "nonew": true,
  "plusplus": false,
  "quotmark": false,
  "undef": true,
  "unused": "vars",
  "strict": true,
  "asi": false,
  "boss": false,
  "debug": false,
  "eqnull": false,
  "esnext": false,
  "moz": false,
  "evil": false,
  "expr": false,
  "funcscope": false,
  "globalstrict": false,
  "iterator": false,
  "lastsemic": false,
  "laxbreak": false,
  "laxcomma": false,
  "loopfunc": false,
  "multistr": true,
  "noyield": false,
  "notypeof": false,
  "proto": false,
  "scripturl": false,
  "shadow": false,
  "sub": false,
  "supernew": false,
  "validthis": false,
  "browser": true,
  "browserify": false,
  "couch": false,
  "devel": true,
  "dojo": false,
  "jasmine": false,
  "jquery": false,
  "mocha": true,
  "mootools": false,
  "node": false,
  "nonstandard": false,
  "prototypejs": false,
  "qunit": false,
  "rhino": false,
  "shelljs": false,
  "worker": false,
  "wsh": false,
  "yui": false
}

Apps/Sandcastle/.jshintrc

{
  "extends": "../.jshintrc",
  "unused": false,
  "predef": [
    "JSON",
    "require",
    "console",
    "Sandcastle",
    "Cesium"
  ]
}

2.npm run minifyRelease

3.npm run minify

4.npm run combineRelease

5.npm run release

Cesium打包命令

原文:https://www.cnblogs.com/pumpkin-123/p/12152977.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!