Compare commits
1
Commits
82d9531c25
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79f3cffb5e |
No files matched your search
+3
-4
@@ -33,11 +33,10 @@ if (activeKeyMap == null) {
|
||||
const serverPort =
|
||||
process.env.NODE_ENV === 'development' ? config.PORT : location.port
|
||||
|
||||
const baseUrl = 'http://110.238.117.95:17057/'
|
||||
// location.protocol + '//' + location.hostname + ':' + serverPort + '/'
|
||||
const baseUrl =
|
||||
location.protocol + '//' + location.hostname + ':' + serverPort + '/'
|
||||
|
||||
// const wsBaseUrl = 'ws' + '://' + location.hostname + ':' + serverPort
|
||||
const wsBaseUrl = 'ws://110.238.117.95:17057/'
|
||||
const wsBaseUrl = 'ws' + '://' + location.hostname + ':' + serverPort
|
||||
|
||||
// console.log(process.env.NODE_ENV,config.DEVPORT,location.port,serverPort)
|
||||
export const useSettingStore = defineStore('setting', {
|
||||
|
||||
+9
-10
@@ -10,39 +10,38 @@ export default defineConfig({
|
||||
vue(),
|
||||
visualizer({
|
||||
open: true,
|
||||
filename: 'visualizer.html' //分析图生成的文件名
|
||||
filename: "visualizer.html" //分析图生成的文件名
|
||||
})
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
"@": fileURLToPath(new URL("./src", import.meta.url))
|
||||
}
|
||||
},
|
||||
server: {
|
||||
// host:'0.0.0.0',
|
||||
port: '17058',
|
||||
port: "17058",
|
||||
open: true
|
||||
},
|
||||
esbuild: {
|
||||
drop: ['console', 'debugger']
|
||||
drop: ["console", "debugger"]
|
||||
},
|
||||
build: {
|
||||
minify: true,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
// 打包输出的配置
|
||||
manualChunks: (id) => {
|
||||
manualChunks: id => {
|
||||
// 这个ID,就是所有文件的绝对路径
|
||||
if (id.includes('node_modules')) {
|
||||
if (id.includes("node_modules")) {
|
||||
// 因为 node_modules 中的依赖通常是不会改变的
|
||||
// 所以直接单独打包出去
|
||||
// 这个return 的值就是打包的名称
|
||||
// return id.split('node_modules')[1]
|
||||
return 'modules'
|
||||
return "modules";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
base: './'
|
||||
})
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user