Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6c02f1d0
authored
Feb 23, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sentry 报错修复测试
1 parent
c43afeb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
vue.config.js
vue.config.js
View file @
6c02f1d
...
...
@@ -4,6 +4,7 @@ const forElementUI = require("webpack-theme-color-replacer/forElementUI")
// const HardPlugin = require('hard-source-webpack-plugin') // 使用缓存,优化启动速度
const
SentryWebpackPlugin
=
require
(
"@sentry/webpack-plugin"
)
// const SpeedMeasurePlugin = require('speed-measure-webpack-plugin')
const
timeStamp
=
new
Date
().
getTime
()
const
CopyDir
=
require
(
"./plugins/copyDir"
)
// const AsyncRomveDir = require('./plugins/removeDir')
const
os
=
require
(
"os"
)
...
...
@@ -13,7 +14,6 @@ const os = require("os")
*/
function
getIpAddress
()
{
var
ifaces
=
os
.
networkInterfaces
()
for
(
var
dev
in
ifaces
)
{
const
iface
=
ifaces
[
dev
]
...
...
@@ -99,6 +99,18 @@ module.exports = {
}
},
configureWebpack
:
(
config
)
=>
{
// console.log(config, "config")
// debugger
config
.
output
=
{
...
config
.
output
,
// 把应用打包成umd库格式
library
:
"myLibrary"
,
// 输出重构 打包编译后的文件名称 【模块名称.时间戳】
filename
:
`[name].
${
timeStamp
}
.js`
,
libraryTarget
:
"umd"
,
globalObject
:
"this"
}
if
(
isDev
)
{
// if (!isDev) {
config
.
externals
=
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment