代码拉取完成,页面将自动刷新
同步操作将从 Fumk/vue2-cesium-screen 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
const { defineConfig } = require("@vue/cli-service");
const path = require("path");
const webpack = require("webpack");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
function resolve(dir) {
return path.join(__dirname, dir);
}
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false,
configureWebpack: {
name: "vue-cesium",
resolve: {
alias: {
"@": resolve("src"),
},
},
plugins: [
new NodePolyfillPlugin(),
new CopyWebpackPlugin({
patterns: [
{
from: "node_modules/cesium/Build/Cesium/Workers",
to: "cesium/Workers",
},
{
from: "node_modules/cesium/Build/Cesium/ThirdParty",
to: "cesium/ThirdParty",
},
{
from: "node_modules/cesium/Build/Cesium/Assets",
to: "cesium/Assets",
},
{
from: "node_modules/cesium/Build/Cesium/Widgets",
to: "cesium/Widgets",
},
],
}),
new webpack.DefinePlugin({
// Define relative base path in cesium for loading assets
CESIUM_BASE_URL: JSON.stringify("./cesium"),
}),
],
module: {
rules: [
{
test: /.js$/,
include: /(cesium)/,
use: {
loader: "@open-wc/webpack-import-meta-loader",
},
},
],
},
},
pluginOptions: {
"style-resources-loader": {
preProcessor: "less",
patterns: [],
},
},
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。