Giter VIP home page Giter VIP logo

grunt-csswring's Introduction

grunt-csswring's People

Contributors

albertorestifo avatar princed avatar

Stargazers

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

Watchers

 avatar  avatar

grunt-csswring's Issues

Source map file not being created

Not sure if I am doing something wrong, but I have tried various combinations and cannot get a csswring to create a source map for one of my csswring tasks.

GruntFile:

csswring: {
options: {
removeAllComments: true,
map: true
},

        cssApp: {               
            src: '<%= meta.cssPath%>/site.css',
            dest: '<%= meta.resPath %>/_app.css'
        },

        cssglobal: {               
            src: [
                '<%= meta.cssPath%>/bootstrap.css',
                '<%= meta.cssPath%>/ng-grid.css'
            ],
            dest: '<%= meta.resPath %>/_cssglobal.css'
        }            
    },

Output:
C:!samtec\Training\WebTech\WebTechTest2Solution\WebTechLab2.Web_build>grunt
Running "csswring:cssApp" (csswring) task
File ../_resources/_app.css created: 31 B โ†’ 18 B

Running "csswring:cssglobal" (csswring) task
File ../_resources/_cssglobal.css created: 141.83 kB โ†’ 117.03 kB
File ../_resources/_cssglobal.css.map created (source map).

I can never get a source map created for _app.css. Any suggestions?

Specifying multiple src files per dest

First and foremost: Thank you for that nice plugin!

Question: It seems not to be possible to have grunt-csswring create one minified destination file out of multiple sources. I tried setting an array as src, as well as switching to files. Both without success. Anything I miss?

minification strip border whitespace in the css rule

when using a rule like this:
$lightGrey: rgb(102, 102, 102);
border: 1px solid $lightgrey;

the minified result is:
border: 1px solid#666;

There's a missing whitespace between the word "solid" and the hex value, making IE skip the rule. This only happens when the rgb value can be stripped to a shorthand hex. If we use rgb(102, 102, 103) instead, everything is working as expected.

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.