Coder Social home page Coder Social logo

grunt-bom-removal's People

Contributors

steditor avatar zandroid avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

steditor

grunt-bom-removal's Issues

Glob patterns

I'm pretty new to grunt so this may be a PEBKAC issue.

Anyway, I have the following Gruntfile.js:

module.exports = function(grunt) {
    grunt.initConfig({
        bom: [
            '**/*.{html,ts,js,less,css}'
            , '!bower_components/**/*.*'
            , '!node_modules/**/*.*'
        ]
    });
    grunt.loadNpmTasks('grunt-bom-removal');
};

It seems like you support globs, possibly by using this directly?

Two things:

  1. My negation patterns don't seem to be working. Example: File "bower_components/core-drag-drop/demo.html" rewritten.
  2. I get a warning because it's trying to open a folder as a file: Warning: Unable to read "node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js" file (Error code: EISDIR). Use --force to continue. Turns out ipaddr.js is a directory with several files/subdirectories underneath it. I think you want to check for grunt.file.isFile(). However, I'm not sure why that directory is being matched in the first place.

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.