|
|
@@ -176,6 +176,10 @@ module.exports = function(crowi) {
|
|
|
});
|
|
|
|
|
|
debug('Config loaded', config);
|
|
|
+
|
|
|
+ // uglify and store
|
|
|
+ Config.generateUglifiedCustomCss(config);
|
|
|
+
|
|
|
return callback(null, config);
|
|
|
});
|
|
|
};
|
|
|
@@ -231,6 +235,21 @@ module.exports = function(crowi) {
|
|
|
return config.markdown['markdown:isEnabledLinebreaksInComments'];
|
|
|
};
|
|
|
|
|
|
+ /**
|
|
|
+ * uglify store custom css strings
|
|
|
+ */
|
|
|
+ configSchema.statics.generateUglifiedCustomCss = function(config)
|
|
|
+ {
|
|
|
+ var rawCss = config.crowi['customize:css'] || getArrayForInstalling()['customize:css'];
|
|
|
+ // TODO uglify
|
|
|
+ this.uglifiedCustomCss = rawCss;
|
|
|
+ }
|
|
|
+
|
|
|
+ configSchema.statics.customCss = function(config)
|
|
|
+ {
|
|
|
+ return this.uglifiedCustomCss;
|
|
|
+ }
|
|
|
+
|
|
|
configSchema.statics.hasSlackConfig = function(config)
|
|
|
{
|
|
|
if (!config.notification) {
|