Hi,

after starting work with a mothership subtheme, we've noticed, that livereload isn't working. But it worked with a omega subtheme, for example. mothership removes the type of the included style files.

before mothership's stripping:

<style <strong>type="text/css"</strong>>@import url("http://dj/modules/system/system.base.css?mmy4yr");
@import url("http://dj/modules/system/system.menus.css?mmy4yr");
@import url("http://dj/modules/system/system.messages.css?mmy4yr");
@import url("http://dj/modules/system/system.theme.css?mmy4yr");</style>

after mothership's stripping:

<style>@import url("http://dj/modules/system/system.base.css?mmy4yr");
@import url("http://dj/modules/system/system.menus.css?mmy4yr");
@import url("http://dj/modules/system/system.messages.css?mmy4yr");
@import url("http://dj/modules/system/system.theme.css?mmy4yr");</style>

If you validate the html markup (with the w3c validator), which is generated BEFORE and AFTER mothership's stripping, both markups are valid and standard-compliant. So mothership's removes unnecessary markup, which makes html-reading easier for us. In the comments from the mothership theme you can read in template.php a link to helpful article about stripping needless XHTML stuff: http://sonspring.com/journal/html5-in-drupal-7.

So.. since all less files should have ".less" on their end, this could be the only indicator for watching these files. Additionally in the case with the HTML5 standard, as you can read above.

Our conclusion is:
Please remove [type="text/css"] in line 9 and 56 of the less.watch.js file.

Looking forward to your reply!
Peter

Comments

corey.aufang’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 9138617 on 7.x-3.x, 7.x-4.x by corey.aufang:
    Issue #1997374 by jepSter: Fix for needlessly specific selectors in
    less...