当前位置: 首页 > news >正文

十大外贸网站网站建设与管理的书

十大外贸网站,网站建设与管理的书,做网站赚钱平台,网站域名购买后能修改吗main.js: 这个文件是项目的入口文件,主要进行了以下操作: 使用Vue 3的createApp创建应用实例。加载了element-plus UI 组件库。加载了router和store,以及axios用于发送HTTP请求。将@turf/turf和自定义的bus.js注册到全局属性中,便于在组件中使用。环境配置需求: 你需要安…main.js: 这个文件是项目的入口文件,主要进行了以下操作: 使用Vue 3的createApp创建应用实例。加载了element-plus UI 组件库。加载了router和store,以及axios用于发送HTTP请求。将@turf/turf和自定义的bus.js注册到全局属性中,便于在组件中使用。环境配置需求: 你需要安装以下依赖环境: Node.js: 版本为18.18.2。npm: 版本为9.6.7。Webpack: 版本为4.47,但是vue-cli会自动管理它。其他通过npm install自动安装的依赖项。import { createApp } from 'vue' import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' import App from './App.vue' import router from './router' import store from './store' import axios from 'axios' import VueAxios from 'vue-axios' import * as turf from '@turf/turf' import * as bus from './bus.js'// import "cesium/Widgets/widgets.css"; // import * as Cesium from "cesium/Cesium"; // global.Cesium = Cesium;const app = createApp(App); app.use(ElementPlus); // app.use(store).use(router).mount('#app') app.use(store).use(router).use(VueAxios, axios).mount('#app') app.config.globalProperties.$turf = turf; app.config.globalProperties.$bus = bus;vue.config.js:、 这个文件主要用于配置Webpack的打包和开发服务器设置: publicPath: 指定了项目的根路径为/cesium2.0_test,可能会影响到项目的部署。devServer: 配置了开发服务器端口为8081。configureWebpack: source-map: 这个设置便于开发调试代码,在生产环境中应该用none来提升性能。resolve.alias: 使用@代表src文件夹,简化导入路径。externals: 将很多外部库(如Cesium、xbsj-renderer、xbsj-xe2等)设为外部依赖,减少打包体积。plugins: 使用CopyWebpackPlugin将一些依赖包复制到指定位置,主要是xbsj和esobjs插件的Web资源。module.rules: 加载js文件时使用@open-wc/webpack-import-meta-loader,支持import.meta语法。const CopyWebpackPlugin = require('copy-webpack-plugin') const webpack = require('webpack') const path = require('path')const debug = process.env.NODE_ENV !== 'production' module.exports = {publicPath:"/cesium2.0_test",devServer: {port: 8081 //修改服务端口号},outputDir: 'cesium2.0_test', //设置 build 输出目录configureWebpack: {devtool:'source-map',//浏览器里调试代码 'source-map',部署用'none'output: {sourcePrefix: ' '},amd: {toUrlUndefined: true},resolve: {alias: {'@': path.resolve('src'),}},externals: { // @cesiumcesium: 'Cesium', // xr-utils中有cesium相关的函数// @xbsj-renderer'xbsj-renderer/dist-node/xr-base-utils': 'xbsj["xr-base-utils"]','xbsj-renderer/dist-node/xr-math': 'xbsj["xr-math"]','xbsj-renderer/dist-node/xr-utils': 'xbsj["xr-utils"]','xbsj-renderer/dist-node/xr-cesium': 'xbsj["xr-cesium"]',// @xbsj-xe2'xbsj-xe2/dist-node/xe2': 'XE2["xe2"]','xbsj-xe2/dist-node/xe2-base': 'XE2["xe2-base"]','xbsj-xe2/dist-node/xe2-base-utils': 'XE2["xe2-base-utils"]','xbsj-xe2/dist-node/xe2-utils': 'XE2["xe2-utils"]','xbsj-xe2/dist-node/xe2-cesium': 'XE2["xe2-cesium"]','xbsj-xe2/dist-node/xe2-mapbox': 'XE2["xe2-mapbox"]','xbsj-xe2/dist-node/xe2-ue': 'XE2["xe2-ue"]','xbsj-xe2/dist-node/utility-xe2-plugin': 'XE2["utility-xe2-plugin"]','xbsj-xe2/dist-node/xe2-all-in-one': 'XE2["xe2-all-in-one"]','xbsj-xe2/dist-node/xe2-base-objects': 'XE2["xe2-base-objects"]','xbsj-xe2/dist-node/xe2-objects': 'XE2["xe2-objects"]','xbsj-xe2/dist-node/xe2-cesium-objects': 'XE2["xe2-cesium-objects"]','xbsj-xe2/dist-node/xe2-ue-objects': 'XE2["xe2-ue-objects"]','xbsj-xe2/dist-node/xe2-openlayers': 'XE2["xe2-openlayers"]','xbsj-xe2/dist-node/xe2-openlayers-objects': 'XE2["xe2-openlayers-objects"]',// plugins'smplotting-xe2-plugin/dist-node/smplotting-xe2-plugin': 'XE2["smplotting-xe2-plugin"]','smplotting-xe2-plugin/dist-node/smplotting-xe2-plugin-main': 'XE2["smplotting-xe2-plugin-main"]','esobjs-xe2-plugin/dist-node/esobjs-xe2-plugin': 'XE2["esobjs-xe2-plugin"]','esobjs-xe2-plugin/dist-node/esobjs-xe2-plugin-main': 'XE2["esobjs-xe2-plugin-main"]',},plugins: [new CopyWebpackPlugin([{from: './node_modules/xbsj-xe2/dist-web',to: 'js/xbsj-xe2/dist-web',toType: 'dir'},{from: './node_modules/xbsj-xe2-assets/dist-web',to: 'js/xbsj-xe2-assets/dist-web',toType: 'dir'},{from: './node_modules/smplotting-xe2-plugin/dist-web',to: 'js/smplotting-xe2-plugin/dist-web',toType: 'dir'},{from: './node_modules/esobjs-xe2-plugin/dist-web',
http://www.dnsts.com.cn/news/255528.html

相关文章:

  • 北京好网站制作公司伴奏网站防盗是怎么做的
  • 做餐饮连锁加盟如何选网站推广wordpress 开发主题
  • 国外做任务的网站上海近期大事件
  • 自媒体平台企业网站怎么设置昆山正规网站建设
  • 网站域名空间地址云南网站建设维修公司
  • 200元网站建设大气手机企业网站
  • 建电商网站要多少钱黄骅港泰地码头
  • 免费查企业电话网站百度指数移动版app
  • 江苏质监站网站做资料网站建设上机课
  • 长沙建网站的自己怎么做网站游戏
  • 合肥专业网站制旅行社erp系统
  • 招标网站建设方案wordpress专题栏目
  • 用js做网站如何申请企业邮箱
  • 自己做网站销售品牌网站运营
  • 同城分类网站建设政务移动门户网站建设
  • 提供常州网站建设100个游戏代码
  • 外贸电商网站设计网站由那些组成
  • 仿站WordPress网店装修流程
  • 怎样拍照产品做网站长沙网络营销
  • 网站建设文化代理商wordpress建站教程jiuyou
  • 有没有专门做针织衫的网站北京网页设计公司兴田德润挺好
  • 同ip多域名做网站重庆网站到首页排名
  • 网站做百度排名教程黑帽seo培训大神
  • 建站出海如何创建一个免费的网站
  • 高端网站建设公短视频代运营合作方案
  • 浙江华企网站做的咋样苏州企业网站建设制作服务
  • 有什么网站可以做运动网络推广员的工作内容
  • dedecms 如何关闭网站在阿里巴巴上做网站要多少钱
  • vue适合什么网站开发wordpress标签管理系统
  • 免费个人建站空间网站备案自己备案和代理备案