Giter Club home page Giter Club logo

grunt-bbb-styles's People

Watchers

 avatar  avatar  avatar

Forkers

averik crazytoad

grunt-bbb-styles's Issues

Configure path.sep globally

My css is like this
body {
letter-spacing: -0.3px;
background: url("../images/outer_bg.jpg") repeat;
}

after bbb-styles executes it became

body {letter-spacing: -0.3px; background: url("/app\images\outer_bg.jpg") repeat;}

See the backslash.

It fails loading on the browser

I'm using windows 8

It happens on path.join()

Is it possible to set path.sep globally for nodeJs?

regards

Urls for font-face are incorrectly parsed

When importing stylesheets on a grunt build @font-face urls are getting incorrectly prepended with the forceRelative image url, and nested url calls which are required for correct processing aren't getting touched at all.

@font-face {
  font-family: Ratchicons;
  font-style: normal;
  font-weight: normal;
  src: url("../fonts/ratchicons.eot");
  src: url("../fonts/ratchicons.eot?#iefix") format("embedded-opentype"), 
       url("../fonts/ratchicons.woff") format("woff"), 
       url("../fonts/ratchicons.ttf") format("truetype"), 
       url("../fonts/ratchicons.svg#svgFontName") format("svg");
}

is getting rewritten to:

@font-face {font-family: Ratchicons; font-style: normal; font-weight: normal; src: url("/app/img/vendor/bower/ratchet/dist/fonts/ratchicons.eot?#iefix") format("embedded-opentype"), 
       url("../fonts/ratchicons.woff") format("woff"), 
       url("../fonts/ratchicons.ttf") format("truetype"), 
       url("../fonts/ratchicons.svg#svgFontName") format("svg");}

As you can see the the first src url is completely removed and only the first nested one is aliased, but incorrectly prepended with the forceRelative url.

You can't specify an empty prefix

You can't specify an empty prefix since:

if (!options.prefix) {
      options.prefix = "./app/styles/";
}

where options.prefix = "" will evaluate to true and the prefix will be set to "./app/styles/"

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.