Cesium打包命令
Posted pumpkin-123
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cesium打包命令相关的知识,希望对你有一定的参考价值。
1.npm run build
如果出现错误:[11:21:32] Error: ENOENT: no such file or directory, open ‘D:WWWgisCesiumApps.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打包命令的主要内容,如果未能解决你的问题,请参考以下文章