mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: vditor: respect cdn_prefix setting
This commit is contained in:
1 parent
595f28b1df
commit
53d9908d12
3 files changed
+2
-1
No files matched your search
@@ -3,7 +3,6 @@ import { ObjectID, FilterQuery } from 'mongodb';
|
||||
import { Dictionary, escapeRegExp, pick } from 'lodash';
|
||||
import { STATUS } from './builtin';
|
||||
import * as document from './document';
|
||||
import domain from './domain';
|
||||
import { buildProjection } from '../utils';
|
||||
import type { ProblemStatusDoc, Pdict, Document } from '../interface';
|
||||
import {
|
||||
|
||||
@@ -143,6 +143,7 @@ export default function (env = {}) {
|
||||
patterns: [
|
||||
{ from: root('static') },
|
||||
{ from: root(`${dirname(require.resolve('emojify.js/package.json'))}/dist/images/basic`), to: 'img/emoji/' },
|
||||
{ from: root(`${dirname(require.resolve('vditor/package.json'))}`), to: 'vditor' },
|
||||
],
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
|
||||
@@ -13,6 +13,7 @@ export const config = {
|
||||
toolbarConfig: {
|
||||
pin: true,
|
||||
},
|
||||
cdn: `${UiContext.cdn_prefix}vditor`,
|
||||
counter: {
|
||||
enable: true,
|
||||
max: 65536,
|
||||
|
||||
Reference in new issue
Block a user