Coder Social home page Coder Social logo

munee's Introduction

Munee: Standalone PHP 5.3 Asset Optimisation & Manipulation

#####On-The-Fly Image Resizing, On-the-fly LESS, SCSS, CoffeeScript Compiling, CSS & JavaScript Combining/Minifying, and Smart Client Side and Server Side Caching

Gitter Build Status Flatter this


munee's People

Contributors

addfs avatar bezumkin avatar bitdeli-chef avatar canvural avatar e10k avatar elkangaroo avatar meenie avatar nofirg avatar olliebrennan avatar tcopestake avatar tedivm avatar tomasvotruba avatar vita10gy avatar webbird avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

munee's Issues

Image Issue with Wordpress.

I just try this with a wordpress installation. It works fine, except that when a Admin is logged in and view the front page, then in admin bar, Wordpress logo and update icons goes missing. they use a query string by wordpress.

Default image when requested image not exists

Hi,

When an image is requested and the source don't exists, is it possible to display a default image? I'm using Munee on a (custom) CDN for products but it isn't known if a product image already exists. Displaying a "No image yet" image is much nicer then showing nothing.

extension not handled?

I am getting this error
Error: The following extension is not handled: jpg?resize=width[250]

This is how I am referencing the file:

Is that the correct way to call it?

attribute selectors and extend bug

Using attribute ends with selector with extend is getting output as junk. Here's my usage:

.content-item{
  /* styles for content-item */

  h1{
    /* styles for content-item h1 */

    a::after{ @extend .fa; } /* this works */
    a[href$=".pdf"]:after{ /* this breaks everything */
      @extend .fa-file-pdf-o:before;
    }
  }
}

I'm expecting the a[href$="pdf"]:after selector to end up being:

.fa-file-pdf-o:before, 
.content-item h1 a[href$="pdf"]:after

but instead it gets mashed into:

.fa-file-pdf-o:before, 
.content-item h1 ".pdf"][href$=:after

Page Speed and JS Compression

Hi,

Page Speed (using gtmetrix.com) tells me I have problems with my JS files :

  • Enable gzip compression
  • Specify a Vary: Accept-Encoding header

When I don't use Munee, I don't have these problems...
My CSS file have not this problem.

Here is my .htaccess, if you need it...

# ##############################################################################
# # ERRORS                                                                     #
# ##############################################################################

# ------------------------------------------------------------------------------
# | 404 error prevention for non-existing redirected folders                   |
# ------------------------------------------------------------------------------

Options -MultiViews

# ------------------------------------------------------------------------------
# | Custom error messages / pages                                              |
# ------------------------------------------------------------------------------

ErrorDocument 404 /404.html


# ##############################################################################
# # MIME TYPES AND ENCODING                                                    #
# ##############################################################################

# ------------------------------------------------------------------------------
# | Proper MIME types for all files                                            |
# ------------------------------------------------------------------------------

<IfModule mod_mime.c>

  # Audio
    AddType audio/mp4                                   m4a f4a f4b
    AddType audio/ogg                                   oga ogg opus

  # Data interchange
    AddType application/json                            json map
    AddType application/ld+json                         jsonld

  # JavaScript
    # Normalize to standard type.
    # http://tools.ietf.org/html/rfc4329#section-7.2
    AddType application/javascript                      js

  # Video
    AddType video/mp4                                   f4v f4p m4v mp4
    AddType video/ogg                                   ogv
    AddType video/webm                                  webm
    AddType video/x-flv                                 flv

  # Web fonts
    AddType application/font-woff                       woff
    AddType application/vnd.ms-fontobject               eot

    AddType application/x-font-ttf                      ttc ttf
    AddType font/opentype                               otf

    # Make SVGZ fonts work on the iPad.
    # https://twitter.com/FontSquirrel/status/14855840545
    AddType     image/svg+xml                           svgz
    AddEncoding gzip                                    svgz

  # Other
    AddType application/octet-stream                    safariextz
    AddType application/x-chrome-extension              crx
    AddType application/x-opera-extension               oex
    AddType application/x-web-app-manifest+json         webapp
    AddType application/x-xpinstall                     xpi
    AddType application/xml                             atom rdf rss xml
    AddType image/webp                                  webp
    AddType image/x-icon                                cur
    AddType text/cache-manifest                         appcache manifest
    AddType text/vtt                                    vtt
    AddType text/x-component                            htc
    AddType text/x-vcard                                vcf

</IfModule>

# ------------------------------------------------------------------------------
# | UTF-8 encoding                                                             |
# ------------------------------------------------------------------------------

AddDefaultCharset utf-8

<IfModule mod_mime.c>
    AddCharset utf-8 .atom .css .js .json .jsonld .rss .vtt .webapp .xml
</IfModule>


# ##############################################################################
# # URL REWRITES                                                               #
# ##############################################################################

# ------------------------------------------------------------------------------
# | Rewrite engine                                                             |
# ------------------------------------------------------------------------------

<IfModule mod_rewrite.c>
    Options +FollowSymlinks
  # Options +SymLinksIfOwnerMatch
    RewriteEngine On
  # RewriteBase /
</IfModule>


# ##############################################################################
# # SECURITY                                                                   #
# ##############################################################################


# ------------------------------------------------------------------------------
# | File access                                                                |
# ------------------------------------------------------------------------------

<IfModule mod_autoindex.c>
    Options -Indexes
</IfModule>

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


<IfModule mod_rewrite.c>
    RewriteCond %{SCRIPT_FILENAME} -d [OR]
    RewriteCond %{SCRIPT_FILENAME} -f
    RewriteRule "(^|/)\." - [F]
</IfModule>

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

<FilesMatch "(^#.*#|\.(bak|config|dist|fla|in[ci]|log|psd|sh|sql|sw[op])|~)$">

    # Apache < 2.3
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
        Satisfy All
    </IfModule>

    # Apache = 2.3
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>

</FilesMatch>

# ##############################################################################
# # WEB PERFORMANCE                                                            #
# ##############################################################################

# ------------------------------------------------------------------------------
# | Compression                                                                |
# ------------------------------------------------------------------------------

<IfModule mod_deflate.c>

    <IfModule mod_setenvif.c>
        <IfModule mod_headers.c>
            SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
            RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
        </IfModule>
    </IfModule>

    <IfModule mod_filter.c>
        AddOutputFilterByType DEFLATE application/atom+xml \
                                      application/javascript \
                                      application/json \
                                      application/ld+json \
                                      application/rss+xml \
                                      application/vnd.ms-fontobject \
                                      application/x-font-ttf \
                                      application/x-web-app-manifest+json \
                                      application/xhtml+xml \
                                      application/xml \
                                      font/opentype \
                                      image/svg+xml \
                                      image/x-icon \
                                      text/css \
                                      text/html \
                                      text/plain \
                                      text/x-component \
                                      text/xml
    </IfModule>

</IfModule>

# ------------------------------------------------------------------------------
# | Expires headers                                                            |
# ------------------------------------------------------------------------------

<IfModule mod_expires.c>

    ExpiresActive on
    ExpiresDefault                                      "access plus 1 month"

  # CSS
    ExpiresByType text/css                              "access plus 1 week"

  # Data interchange
    ExpiresByType application/json                      "access plus 0 seconds"
    ExpiresByType application/ld+json                   "access plus 0 seconds"
    ExpiresByType application/xml                       "access plus 0 seconds"
    ExpiresByType text/xml                              "access plus 0 seconds"

  # Favicon (cannot be renamed!) and cursor images
    ExpiresByType image/x-icon                          "access plus 1 week"

  # HTML components (HTCs)
    ExpiresByType text/x-component                      "access plus 1 month"

  # HTML
    ExpiresByType text/html                             "access plus 0 seconds"

  # JavaScript
    ExpiresByType application/javascript                "access plus 1 week"

  # Manifest files
    ExpiresByType application/x-web-app-manifest+json   "access plus 0 seconds"
    ExpiresByType text/cache-manifest                   "access plus 0 seconds"

  # Media
    ExpiresByType audio/ogg                             "access plus 1 month"
    ExpiresByType image/gif                             "access plus 1 month"
    ExpiresByType image/jpeg                            "access plus 1 month"
    ExpiresByType image/png                             "access plus 1 month"
    ExpiresByType video/mp4                             "access plus 1 month"
    ExpiresByType video/ogg                             "access plus 1 month"
    ExpiresByType video/webm                            "access plus 1 month"

  # Web feeds
    ExpiresByType application/atom+xml                  "access plus 1 hour"
    ExpiresByType application/rss+xml                   "access plus 1 hour"

  # Web fonts
    ExpiresByType application/font-woff                 "access plus 1 month"
    ExpiresByType application/vnd.ms-fontobject         "access plus 1 month"
    ExpiresByType application/x-font-ttf                "access plus 1 month"
    ExpiresByType font/opentype                         "access plus 1 month"
    ExpiresByType image/svg+xml                         "access plus 1 month"

</IfModule>

#### Munee .htaccess Code Start ####
RewriteRule ^(.*\.(?:css|less|scss|js|coffee|jpg|png|gif|jpeg))$ munee.php?files=/$1 [L,QSA,NC]

API site is down

Hey guys,
The API site is down, would you mind listing the API on the GitHub repo?

BTW, thanks for the tool.

Dependency has issue with PHP < 5.3.9.

MyIntervals/PHP-CSS-Parser#83

The sabberworm/PHP-CSS-Parser has issues with PHP < 5.3.9, it will cause a fatal error which in turn causes Munee to not work with PHP < 5.3.9.

Although this issue has been fixed, the fix hasn't been released yet.

I'm currently using Munee with dev-master of sabberworm/PHP-CSS-Parser.

Comments in minified CSS/LESS

Would be nice if there was ONE type of comment e.g. WP style /*! comment */ that would be preserved through LESS/CSS minification.
I can see this is handled for CSS minification in line 71 of munee/meenie/munie/src/Munie/Asset/Filter/Css/Minify.php but my regex knowledge is nowhere near as good as the authors!

Strange behavior encoding error

Hey guys,

i have included Munee in a project and i noticed a stranged behavior. Including bootstrap.js and jquery.js works fine but not with gmaps3.js. I get a Content Encoding Error.

This is the Request object before echoing to the client.

object(Munee\Request)[5]
  public 'webroot' => string 'C:\wamp\www\artecolour' (length=22)
  public 'ext' => null
  public 'params' => 
    array (size=0)
      empty
  public 'files' => 
    array (size=0)
      empty
  public 'options' => 
    array (size=0)
      empty
  protected 'rawParams' => 
    array (size=0)
      empty
  protected 'allowedParams' => 
    array (size=0)
      empty
  protected 'rawFiles' => string '/assets/js/vendor/gmap3.js' (length=26)

and the same for bootstrap.js

object(Munee\Request)[5]
  public 'webroot' => string 'C:\wamp\www\artecolour' (length=22)
  public 'ext' => null
  public 'params' => 
    array (size=0)
      empty
  public 'files' => 
    array (size=0)
      empty
  public 'options' => 
    array (size=0)
      empty
  protected 'rawParams' => 
    array (size=0)
      empty
  protected 'allowedParams' => 
    array (size=0)
      empty
  protected 'rawFiles' => string '/components/jquery/jquery.js' (length=28)

but gmaps3.js not working.

is there a way for more debugging information?

Apache mod_aliased asset files are reporting not found

If I have my asset files outside of the site's webroot, reference via mod_alias, munee throws a NotFoundException as it can't find the file due to file_exists referencing the wrong webroot.

Is there an option to have munee load the files by using the existing rewrite rules, eg a curl loopback would return the file based on an alias (though there might be an infinite loop with munee...)

Minify css error

When trying to minify css using ?minify=true, I get the following error:

Fatal error: Call to protected Munee\Asset\Filter\Css\Minify::minify() from context 'Munee\Asset\Type' in vendor\meenie\munee\src\Munee\Asset\Type.php on line 88

GIF Support

Any chance of support on GIF images? I'm trying to resize and compress without luck.

How can I add JS obfuscation?

I want to obfuscate JS for minify, for example input:
function one(first, second) {
alert(first + second);
}
output:
function one(a, b) {
alert(a, b);
}
Is it possible to do that?

Minify CSS generated by SCSS

Hi! I like this library very much and using it in my project. One question - how can I minify css files generated by scss or less?

Best regards
Zelim M.H.

Concatenating Text Assets Not Functioning

This doesn't make sense to me being that concatenation is the biggest feature of Munee. For some reason it is not functioning in my use. I don't see any past issues reported so I reverted to v1.6.0 and no change.

Below is my example usage.

_NOTE_: I haven't tried JS


PHP:

<?php
define('WEBROOT', $_SERVER['DOCUMENT_ROOT']);
define('MUNEE_CACHE', $_SERVER['DOCUMENT_ROOT'] . '/.cache/assets/');
require $_SERVER['DOCUMENT_ROOT'] . '/_core/vendor/autoload.php';
echo \Munee\Dispatcher::run(new \Munee\Request());

htaccess:

RewriteRule ^(.*\.(?:css|less|scss|js|coffee|jpg|png|gif|jpeg))$ _core/munee.php?files=/$1 [L,QSA,NC]

Usage:

<link rel="stylesheet" href="/css/sheet01.css,/css/sheet02.css">

Expected Output:

  1. Rewrite rule to redirect to munee.php
  2. Stylesheets to be concatenated and cached
  3. Send cached stylesheets to client

Actual Output:

  1. Rewrite rule to redirect to munee.php
  2. Stylesheets ARE NOT concatenated and cached
  3. Status Code:404 Not Found: https://site.com/css/sheet01.css,/css/sheet02.css
  4. Images & JS ARE cached

What Works:

<link rel="stylesheet" href="/css/sheet01.css">
// And...
<link rel="stylesheet" href="/css/sheet01.css?minify=true">

Something I have wronge somewhere?

Thnx for your help

-j

How to manually run files through Munee

Hello,

Is it possible to run file or files (for js merging) through munee hrough PHP? And if it is, will it still cache the request?

Thanks,
I've been looking throught the documentation, but I haven't found anything for this.

Bad Value for SRC

In the html validator it is considered a bad value to have:

munee.php?files=images/image.jpg&resize=width[750]q[99] for attribute src on element img: Illegal character in query: not a URL code point.

Is there a work around for this?

@import and minification

I have tried munee now, but I still seem to miss something.

Folder structure:

Base is a subdir under the doc root:
<DOCUMENTROOT>/sub1/sub2

CSS files are placed in a subdir:
<DOCUMENTROOT>/sub1/sub2/templates/freshcat/css/default

Munee is located in a different sub folder:
<DOCUMENTROOT>/sub1/sub2/lib_munee/munee.php

The only file loaded is index.css, which contains a bunch of @imports.

@import url(reset.css);
@import url(webfont.css);
@import url(colors.css);
...

Result is a minified index.css, but the files that are imported are not minified. Is this by design, or do I have to tweak my config?

define('MUNEE_FOLDER','<DOCUMENTROOT>/sub1/sub2/lib_munee'));
define('MUNEE_CACHE' ,'<DOCUMENTROOT>/sub1/sub2/temp/cache'));
define('DS'          ,DIRECTORY_SEPARATOR);
define('WEBROOT'     ,'<DOCUMENTROOT>/sub1/sub2');
define('SUB_FOLDER'  ,'sub1/sub2');

Note: I had to set the SUB_FOLDER to make the paths resolve correcty.

Thanks!

CSS background path problem '../' with few images in background

Hello, it is possible to add few images in background in CSS. For example I have:
.c1 {
background-image: url("../../img/bg29.png"), url("../../img/bg37.png"), url("../../img/bg53.png");
}
It transforms to:
.c1 {
background-image: url("/mysite/public/img/bg29.png"), url("../../img/bg37.png"), url("../../img/bg53.png");
}
First URL is ok, another two does not

Protected call errors - Fixed

Hey there, we just found this tool and so far so good. Only issue is we ran into a problem like #15 here, and after a bit of head scratching, solved the problem.

The issue is not related to protected calls, per se, it's because in PHP you can't have functions named the same name as the class. This was, and remains functional, the original way PHP did constructors. So it was actually calling the protected minify helper when trying to construct the Minify filter.

I can submit a pull request if this patch doesn't help, basically just rename the minify helper to literally anything else :). You can probably take the warnings about PHP versions and protected errors down with this.

diff -urN munee.orig/meenie/munee/src/Munee/Asset/Filter/Css/Minify.php munee/meenie/munee/src/Munee/Asset/Filter/Css/Minify.php
--- munee.orig/meenie/munee/src/Munee/Asset/Filter/Css/Minify.php   2015-03-12 13:13:01.383956616 -0500
+++ munee/meenie/munee/src/Munee/Asset/Filter/Css/Minify.php    2015-03-12 13:10:45.105126606 -0500
@@ -48,10 +48,10 @@

         $content = file_get_contents($file);
         if (Utils::isSerialized($content, $content)) {
-            $content['compiled'] = $this->minify($content['compiled']);
+            $content['compiled'] = $this->minifyh($content['compiled']);
             $content = serialize($content);
         } else {
-            $content = $this->minify($content);
+            $content = $this->minifyh($content);
         }

         file_put_contents($file, $content);
@@ -64,7 +64,7 @@
      *
      * @return string
      */
-    protected function minify($content)
+    protected function minifyh($content)
     {
         $regexs = array(
             // Remove Comments

Q: Can munee work on php 5.2?

Hi,

Can munee work on php 5.2? If not, do you think is it possible to make it work without investing too much time?

I'm currently using lessphp and want to add concatenation and min of the js files to the project. Any idea if I can only get the js part and make it work on php 5.2.

Thank you

Javascript Minify : problem with comments

Hi ! I found an issue with the minify command when there is a comment at the bottom of js files.

/media/js/test1.js

//TEST1
alert('TEST 1');
//END TEST1

/media/js/test2.js

//TEST2
alert('TEST 2');
//END TEST2

Combine without Minify : OK

<script type="text/javascript" src="/munee.php?files=/media/js/test1.js,/media/js/test2.js" defer></script>
//TEST1
alert('TEST 1');
//END TEST1
//TEST2
alert('TEST 2');
//END TEST2

Combine & Minify : NOT OK

<script type="text/javascript" src="/munee.php?files=/media/js/test1.js,/media/js/test2.js&minify=true" defer></script>
alert('TEST 1');END TEST1

alert('TEST 2');END TEST2

Image not resized?

Dear Cody,
Thanks for creating munee 👍

I have tried to resize an image but it doesn't work. I am using Munee without the htaccess rules, and I'm dynamically adding a background style via javascript. The images are on this page: http://familychallenge.nl/

The top image of the boy with the map is resized, but the image of the beach isn't. I'm using the following code to include the image:
background-image: url("/vendor/rbnvrw/crispus/bin/munee.php?files=/data/images/beach.jpg&resize=width[1263]");

Do you have an idea what might be causing this issue?

Thanks!

CSS background relative path problem '//images/img.gif'

Hi I have a problem with absolute paths in CSS after running the script in minify CSS opoluchayutsya links with a double slash here is an example:

original:
background:url(../images/bg.jpg)

after munee:
background:url(//templates/magazine/images/bg.jpg)

because excess slash pictures are not loaded

File not found

I have this error:

Not Found Error: File does not exist: /assets/css.css

When my file is named like my subfolder in webroot:

https://mydomain/mysite/assets/css/mysite.css

htaccess

with which may be associated this message ? "Error: No file specified; make sure you are using the correct .htaccess rules."
munee does not wrok

checkReferer not working for images from cache

If somebody already open image on original site, and it was put in the cache - than checkReferer option is ignored and image can be hotlinked from anywhere.

I think, that referer must be checked each time.

Image Manipulation result to not found error

Error "Not Found Error: File does not exist: .png"

This is the error I get even after the image file exists.

<img src="sample.png?resize=width[100]-height[100]">

sample.png exists in root directory

Strange characters appearing

.well { background-color: #FFF; } @font-face {

The characters appear after the end of one file and before the start of the next. These characters are not present in the original files nor in the copies found inside the cache.

can not load web font correctly that is indicated in css

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 300;
    src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url('../fonts/toadOcfmlt9b38dHJxOBGOode0-EuMkY--TSyExeINg.woff2') format('woff2'), url('../fonts/toadOcfmlt9b38dHJxOBGNbE_oMaV8t2eFeISPpzbdE.woff') format('woff');
}

i can not load the font.

+FIX less component doesn't work with data-uri e,g, base 64 encoded SVG

url(data:...) get treated as relative path since it doesn't start with slash or dot.

Fix: change line 175 in munee/meenie/munie/src/Munie/Asset/Type/Css.php

from: if ($filePath[0] !== '/') {

to: if ($filePath[0] !== '/' && substr($filePath,0,5) !== 'data:') {

Save. Don't forget it won't seem to work until you make a change to the source less file your'e trying to process (since there's caching)

Documentation

Yesterday I tried to use the minify-Filter with JS and found that I need to install JShrink. I did not find this in the docs.

Feature Request: adaptive image output (as dispatcher option maybe?)

Hi Cody,

Great work! Munee has become a standard asset in my projects very quickly.

Previously I experimented with http://adaptive-images.com/ to serve appropriately sized images to devices. I'm trying to find a way to replicate this with munee.

In short: I'd like to be able to set munee to an exact width (max device screen width) and have it resize all image output to that size. Would a dispacher option work for that?

Font encoding

I had a quick look but I didn't see anyone else mention it. Are there any plans to support ttf and other font files in the future?

For example font-awesome will load fine, but the console will fill up with a bunch of errors similar to:
Failed to decode downloaded font: http://example.com/munee.php?files=/\/assets/css/fonts/font-awesome/fontawesome-webfont.ttf&v=4.4.0

I've fixed it by putting font-awesome outside off the main file chain but it would great if this was possible.

SCSS compilation not working

Hi,

I've updated munee to the last version. Unfortunately, the SCSS compilation doesn't work at all. The file is unchanged. I've only the SCSS source.

I'm developing on a local environment with EasyPHP and PHP 5.5 support.

A set_time_limit(0) was necessary cause I have sometimes this error too ?

Fatal error: Maximum execution time of 30 seconds exceeded in vendor\sabberworm\php-css-parser\lib\Sabberworm\CSS\Parser.php on line 313

Here is a classic declaration :

<link rel="stylesheet" href="themes/restart/assets/scss/app.scss,vendor/font-awesome/css/font-awesome.css?minify=true" />

What do you think it is ?

Thanks for your help

CSS background relative path problem 'images/img.gif'

I use some libraries (for example "jquery easy ui") that have relative paths in css without "../" For example: background: url("images/tree_arrows.gif") or (./images/tree_arrows.gif). There is "images" directory in directory with css. Your library does not change this paths and after concatenating multiple styles into one request they does not work.

CSS background path problem '../'

Hello the original css code is background-image: url('../img/logo.png'); and after Munee the css code chenge to background-image: url(/themes/default/img/logo.png); "WRONG PATH AND IMAGES NOT WORKING".

in the same CSS if the background path is 'images/demo.jpg' after Munee the code path remain the same and working.

The fixRelativeImagePaths have some issues.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.