Fix code quality violations and exclude Manifest from checks
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>
This commit is contained in:
17
node_modules/postcss-minify-selectors/src/index.js
generated
vendored
17
node_modules/postcss-minify-selectors/src/index.js
generated
vendored
@@ -163,6 +163,13 @@ const tagReplacements = new Map([
|
||||
function tag(selector) {
|
||||
const value = selector.value.toLowerCase();
|
||||
|
||||
const isSimple = selector.parent && selector.parent.nodes.length === 1;
|
||||
// Avoid simplifying complex selectors (`entry 100% {...}`)
|
||||
if (!isSimple) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Simplify simple selectors that have replacements (`100% {...}`)
|
||||
if (tagReplacements.has(value)) {
|
||||
selector.value = /** @type {string} */ (tagReplacements.get(value));
|
||||
}
|
||||
@@ -190,11 +197,15 @@ const reducers = new Map(
|
||||
])
|
||||
);
|
||||
|
||||
/** @typedef {object} Options
|
||||
* @property {boolean} [sort=true]
|
||||
*/
|
||||
/**
|
||||
* @type {import('postcss').PluginCreator<void>}
|
||||
* @param {Options} opts
|
||||
* @return {import('postcss').Plugin}
|
||||
*/
|
||||
function pluginCreator() {
|
||||
function pluginCreator(opts = { sort: true }) {
|
||||
return {
|
||||
postcssPlugin: 'postcss-minify-selectors',
|
||||
|
||||
@@ -226,7 +237,9 @@ function pluginCreator() {
|
||||
}
|
||||
}
|
||||
});
|
||||
selectors.nodes.sort();
|
||||
if (opts.sort) {
|
||||
selectors.nodes.sort();
|
||||
}
|
||||
});
|
||||
|
||||
css.walkRules((rule) => {
|
||||
|
||||
8
node_modules/postcss-minify-selectors/src/lib/canUnquote.js
generated
vendored
8
node_modules/postcss-minify-selectors/src/lib/canUnquote.js
generated
vendored
@@ -1,4 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const cssesc = require('cssesc');
|
||||
/**
|
||||
* Can unquote attribute detection from mothereff.in
|
||||
* Copyright Mathias Bynens <https://mathiasbynens.be/>
|
||||
@@ -20,5 +22,9 @@ module.exports = function canUnquote(value) {
|
||||
|
||||
value = value.replace(escapes, 'a').replace(/\\./g, 'a');
|
||||
|
||||
return !(range.test(value) || /^(?:-?\d|--)/.test(value));
|
||||
return (
|
||||
!(range.test(value) || /^(?:-?\d|--)/.test(value)) &&
|
||||
// Do not remove the quotes if escaping is required.
|
||||
cssesc(value) === value
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user