Use named chunk for embed on analyze

This commit is contained in:
Chocobozzz 2021-02-25 15:00:43 +01:00
parent d61893f723
commit 031ea8efed
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 6 additions and 3 deletions

View File

@ -40,7 +40,11 @@ module.exports = function () {
: '[name].[hash].bundle.js',
sourceMapFilename: '[file].map',
chunkFilename: '[id].[hash].chunk.js',
chunkFilename: process.env.ANALYZE_BUNDLE === 'true'
? '[name].chunk.js'
: '[id].[hash].chunk.js',
publicPath: '/client/standalone/videos/'
},

View File

@ -3,7 +3,7 @@ import { body, param, query, ValidationChain } from 'express-validator'
import { isAbleToUploadVideo } from '@server/lib/user'
import { getServerActor } from '@server/models/application/application'
import { ExpressPromiseHandler } from '@server/types/express'
import { MVideoFullLight, MVideoWithRights } from '@server/types/models'
import { MVideoWithRights } from '@server/types/models'
import { ServerErrorCode, UserRight, VideoChangeOwnershipStatus, VideoPrivacy } from '../../../../shared'
import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
import { VideoChangeOwnershipAccept } from '../../../../shared/models/videos/video-change-ownership-accept.model'

View File

@ -28,7 +28,6 @@ import {
MUserFormattable,
MUserNotifSettingChannelDefault,
MUserWithNotificationSetting,
MVideoFullLight,
MVideoWithRights
} from '@server/types/models'
import { hasUserRight, USER_ROLE_LABELS } from '../../../shared/core-utils/users'