Commit a8af82d0 authored by 郝聪敏's avatar 郝聪敏

Merge branch 'feature/fix_name' into 'master'

fix: 修改打包名称

See merge request !91
parents 218643a8 8fc1c52c
......@@ -38,7 +38,7 @@ router.beforeEach((to, from, next) => {
// 路由异常错误处理,尝试解析一个异步组件时发生错误,重新渲染目标页面
router.onError(error => {
console.log("router error:", error.message);
const pattern = /Loading chunk (\d)+ failed/g;
const pattern = /Loading chunk/g;
const isChunkLoadFailed = error.message.match(pattern);
const targetPath = router.history.pending.fullPath;
if (isChunkLoadFailed) {
......
......@@ -12,7 +12,7 @@
<span class="user-family-info-item-name">{{ item.nameMask }}</span>
<div class="user-family-info-item-divider" v-show="index === activeIndex"></div>
</div>
<div
<div
class="user-family-info-item"
:class="{ 'user-family-info-item_fixed': isFixed }"
@click="go('/user/family')"
......@@ -119,7 +119,7 @@ export default {
localStorage.remove(params.itype + "DetailFormData");
} else if (path === "/policy/detail" && params.orderNo) {
pathObj = `${path}/${params.orderNo}`;
} else {
} else if (path === "/user/family") {
pathObj = path;
}
......
......@@ -84,9 +84,12 @@ module.exports = {
config.optimization.runtimeChunk("single");
return config;
},
configureWebpack: config => {
// 添加sentry插件
config.plugins.push(new SentryPlugin(SentryConfig));
configureWebpack: {
plugins: [new SentryPlugin(SentryConfig)],
output: {
filename: "js/[name].[chunkhash:5].js",
chunkFilename: "js/[name].[chunkhash:5].js"
}
},
lintOnSave: true,
runtimeCompiler: false, // 是否使用包含运行时编译器的 Vue 构建版本
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment