码迷,mamicode.com
首页 > 其他好文 > 详细

Cesium打包命令

时间:2020-01-05 18:35:42      阅读:105      评论:0      收藏:0      [点我收藏+]

标签:director   scope   erro   nbsp   OLE   添加   free   sub   open   

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打包命令

标签:director   scope   erro   nbsp   OLE   添加   free   sub   open   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!