Changeset 109304 in spip-zone


Ignore:
Timestamp:
Mar 4, 2018, 9:52:45 PM (21 months ago)
Author:
arnaud.berard@…
Message:

On change _SCSS_LINE_COMMENTS pour _SCSS_SOURCE_MAP inlines sourcemaps
http://leafo.github.io/scssphp/docs/#source-maps

testé sous chrome

Location:
_plugins_/scssphp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/scssphp/trunk/scssphp_fonctions.php

    r109301 r109304  
    4242        });
    4343
    44         // Si definie on affiche les commentaires des sources et numero de ligne dans le fichier css genere
    45         if (defined('_SCSS_LINE_COMMENTS') and '_SCSS_LINE_COMMENTS' == true) {
    46                 $scss->setLineNumberStyle(Compiler::LINE_COMMENTS);
     44        // Inline source maps
     45        // http://leafo.github.io/scssphp/docs/#source-maps
     46        if (defined('_SCSS_SOURCE_MAP') and '_SCSS_SOURCE_MAP' == true) {
     47                $scss->setSourceMap(Compiler::SOURCE_MAP_INLINE);
    4748        }
    4849        // pipeline : scss_variables
     
    5253        $scss_vars = pipeline('scss_variables',array());
    5354        $scss->setVariables($scss_vars);
     55
     56
    5457
    5558        try {
  • _plugins_/scssphp/trunk/scssphp_options.php

    r101227 r109304  
    1111}
    1212
    13 // Activer les LINE_COMMENTS si besoin
    14 // define('_SCSS_LINE_COMMENTS', false);
     13// Activer les _SCSS_SOURCE_MAP si besoin
     14// http://leafo.github.io/scssphp/docs/#source-maps
     15// define('_SCSS_SOURCE_MAP', false);
Note: See TracChangeset for help on using the changeset viewer.