Currently any change to the CSS or JS field in the node edit form will not be reflected in the aggregated CSS or JS cache files if preprocessing CSS/JS is enabled. This can be fixed by not allowing drupal_add_js() and drupal_add_css() to preprocess the CPN generated files. This is also recommended behaviour if CSS or JS is only used rarely on the site such as it is the case for node specific CSS/JS.

Comments

fuerst’s picture

Status: Active » Needs review
StatusFileSize
new1.17 KB

Please see the attached patch.

damienmckenna’s picture

Version: 6.x-1.2 » 7.x-1.x-dev
StatusFileSize
new1.5 KB

This version of the patch adds a settings option to control whether preprocessing is enabled.

damienmckenna’s picture

StatusFileSize
new2.3 KB

Missed the admin page.

damienmckenna’s picture

Status: Needs review » Closed (duplicate)

Marking this as a duplicate of #1850902: Aggregation control for CPN as it splits the CSS and JS aggregation into two separate options, as it should be.