GithubHelp home page GithubHelp logo

Comments (4)

tkellen avatar tkellen commented on August 14, 2024

Thanks for the heads up! I'm going to close this here and open an issue on the Grunt tracker because this is an issue with our declarative file expansion methods, not this task.

from grunt-contrib-compress.

tkellen avatar tkellen commented on August 14, 2024

In the meantime, you can resolve this by using the rename method:
http://stackoverflow.com/questions/16697344/configure-grunt-file-name-matching-for-files-with-multiple-dots

from grunt-contrib-compress.

laurentperez avatar laurentperez commented on August 14, 2024

Thanks. Unfortunately even using a rename, the src is already wrong.

  {expand: true,
                        src: ['one', 'one.min.js', 'foo'], dest: '../../assets/javascript', rename: function(dest, src){
                        grunt.log.writeln("dest:" + dest + "!");
                        grunt.log.writeln("src:" + src + "!");
                        return dest + src;
                    }}

Will miss the first one

Running "compress:main" (compress) task
dest:../../assets/javascript!
src:one.min.js!
dest:../../assets/javascript!
src:foo!
Created ../../assets/javascriptone.min.js.gz (20 bytes)

So, I renamed the files myself.

from grunt-contrib-compress.

laurentperez avatar laurentperez commented on August 14, 2024

Hmm in fact it somehow works, you have to make sure filenames have an extension

src: ['one', 'one.min.js', 'foo'] is ko
src: ['one.js', 'one.min.js', 'foo'] is ok, the src rename parameter will use one.js and one.min.js

from grunt-contrib-compress.

Related Issues (20)

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.