|
@@ -6,7 +6,6 @@ import {
|
|
|
PresetThemesMetadatas,
|
|
PresetThemesMetadatas,
|
|
|
} from '@growi/preset-themes';
|
|
} from '@growi/preset-themes';
|
|
|
import path from 'path';
|
|
import path from 'path';
|
|
|
-import uglifycss from 'uglifycss';
|
|
|
|
|
|
|
|
|
|
import { growiPluginService } from '~/features/growi-plugin/server/services';
|
|
import { growiPluginService } from '~/features/growi-plugin/server/services';
|
|
|
import loggerFactory from '~/utils/logger';
|
|
import loggerFactory from '~/utils/logger';
|
|
@@ -94,8 +93,7 @@ export class CustomizeService implements S2sMessageHandlable {
|
|
|
initCustomCss() {
|
|
initCustomCss() {
|
|
|
const rawCss = configManager.getConfig('customize:css') || '';
|
|
const rawCss = configManager.getConfig('customize:css') || '';
|
|
|
|
|
|
|
|
- // uglify and store
|
|
|
|
|
- this.customCss = uglifycss.processString(rawCss);
|
|
|
|
|
|
|
+ this.customCss = rawCss;
|
|
|
|
|
|
|
|
this.lastLoadedAt = new Date();
|
|
this.lastLoadedAt = new Date();
|
|
|
}
|
|
}
|