Document application modes (development/debug/production) Add global file drop handler, order column normalization, SPA hash fix Serve CDN assets via /_vendor/ URLs instead of merging into bundles Add production minification with license preservation Improve JSON formatting for debugging and production optimization Add CDN asset caching with CSS URL inlining for production builds Add three-mode system (development, debug, production) Update Manifest CLAUDE.md to reflect helper class architecture Refactor Manifest.php into helper classes for better organization Pre-manifest-refactor checkpoint: Add app_mode documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
30 lines
696 B
JavaScript
30 lines
696 B
JavaScript
'use strict';
|
|
|
|
const cssTree = require('css-tree');
|
|
const font = require('./property/font.cjs');
|
|
const fontWeight = require('./property/font-weight.cjs');
|
|
const background = require('./property/background.cjs');
|
|
const border = require('./property/border.cjs');
|
|
|
|
const handlers = {
|
|
'font': font,
|
|
'font-weight': fontWeight,
|
|
'background': background,
|
|
'border': border,
|
|
'outline': border
|
|
};
|
|
|
|
function compressValue(node) {
|
|
if (!this.declaration) {
|
|
return;
|
|
}
|
|
|
|
const property = cssTree.property(this.declaration.property);
|
|
|
|
if (handlers.hasOwnProperty(property.basename)) {
|
|
handlers[property.basename](node);
|
|
}
|
|
}
|
|
|
|
module.exports = compressValue;
|