Add coexistence checks to all enqueue methods to prevent loading both React and Grid.js assets simultaneously. Changes: - ReactAdmin.php: Only enqueue React assets when ?react=1 - Init.php: Skip Grid.js when React active on admin pages - Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0 - Customer.php, Product.php, License.php: Add coexistence checks Now the toggle between Classic and React versions works correctly. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
59 lines
1.7 KiB
JSON
59 lines
1.7 KiB
JSON
{
|
|
"title": "PostCSS Loader options",
|
|
"type": "object",
|
|
"properties": {
|
|
"postcssOptions": {
|
|
"description": "Options to pass through to `Postcss`.",
|
|
"link": "https://github.com/webpack-contrib/postcss-loader#postcssOptions",
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"properties": {
|
|
"config": {
|
|
"description": "Allows to specify PostCSS config path.",
|
|
"link": "https://github.com/webpack-contrib/postcss-loader#config",
|
|
"anyOf": [
|
|
{
|
|
"description": "Allows to specify the path to the configuration file",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"description": "Enables/Disables autoloading config",
|
|
"type": "boolean"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"instanceof": "Function"
|
|
}
|
|
]
|
|
},
|
|
"execute": {
|
|
"description": "Enables/Disables PostCSS parser support in 'CSS-in-JS'.",
|
|
"link": "https://github.com/webpack-contrib/postcss-loader#execute",
|
|
"type": "boolean"
|
|
},
|
|
"sourceMap": {
|
|
"description": "Enables/Disables generation of source maps.",
|
|
"link": "https://github.com/webpack-contrib/postcss-loader#sourcemap",
|
|
"type": "boolean"
|
|
},
|
|
"implementation": {
|
|
"description": "The implementation of postcss to use, instead of the locally installed version",
|
|
"link": "https://github.com/webpack-contrib/postcss-loader#implementation",
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"instanceof": "Function"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|