-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
27 lines (26 loc) · 973 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const localConfig = {
// publicPath: process.env.NODE_ENV === "production" ? "/admin/" : "/",
lintOnSave: false,
devServer: {},
configureWebpack: {
plugins: [
// Copy Cesium Assets, Widgets, and Workers to a static directory
new CopyWebpackPlugin({
patterns: [
{ from: 'node_modules/cesium/Build/Cesium/Workers', to: 'Workers' },
{ from: 'node_modules/cesium/Build/Cesium/ThirdParty', to: 'ThirdParty' },
{ from: 'node_modules/cesium/Build/Cesium/Assets', to: 'Assets' },
{ from: 'node_modules/cesium/Build/Cesium/Widgets', to: 'Widgets' },
],
}),
new webpack.DefinePlugin({
// Define relative base path in cesium for loading assets
CESIUM_BASE_URL: JSON.stringify('/'),
}),
],
resolve: {},
},
};
module.exports = localConfig;