Use named chunk for embed on analyze
This commit is contained in:
parent
d61893f723
commit
031ea8efed
|
@ -40,7 +40,11 @@ module.exports = function () {
|
||||||
: '[name].[hash].bundle.js',
|
: '[name].[hash].bundle.js',
|
||||||
|
|
||||||
sourceMapFilename: '[file].map',
|
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/'
|
publicPath: '/client/standalone/videos/'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { body, param, query, ValidationChain } from 'express-validator'
|
||||||
import { isAbleToUploadVideo } from '@server/lib/user'
|
import { isAbleToUploadVideo } from '@server/lib/user'
|
||||||
import { getServerActor } from '@server/models/application/application'
|
import { getServerActor } from '@server/models/application/application'
|
||||||
import { ExpressPromiseHandler } from '@server/types/express'
|
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 { ServerErrorCode, UserRight, VideoChangeOwnershipStatus, VideoPrivacy } from '../../../../shared'
|
||||||
import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
|
import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
|
||||||
import { VideoChangeOwnershipAccept } from '../../../../shared/models/videos/video-change-ownership-accept.model'
|
import { VideoChangeOwnershipAccept } from '../../../../shared/models/videos/video-change-ownership-accept.model'
|
||||||
|
|
|
@ -28,7 +28,6 @@ import {
|
||||||
MUserFormattable,
|
MUserFormattable,
|
||||||
MUserNotifSettingChannelDefault,
|
MUserNotifSettingChannelDefault,
|
||||||
MUserWithNotificationSetting,
|
MUserWithNotificationSetting,
|
||||||
MVideoFullLight,
|
|
||||||
MVideoWithRights
|
MVideoWithRights
|
||||||
} from '@server/types/models'
|
} from '@server/types/models'
|
||||||
import { hasUserRight, USER_ROLE_LABELS } from '../../../shared/core-utils/users'
|
import { hasUserRight, USER_ROLE_LABELS } from '../../../shared/core-utils/users'
|
||||||
|
|
Loading…
Reference in New Issue