Git Product home page Git Product logo

Comments (3)

jescalan avatar jescalan commented on July 19, 2024

So multipass compilation is a fairly complex process with very specific rules. You can see a breakdown of these rules here. Based on what you have here, I'd guess that you are using a compiler that processes .js files, which is why you are getting this result. If we change the rules around for multipass it would break many other situations, so I'm afraid we can't change this.

What I would recommend is changing the filename to compiled-min.js. Since you have roots set to process .js files, it's going to take any js file you have in your project and run it through. Most people use roots with coffee or without processing js at all, so this problem hasn't come up in the past.

What we could do from our end is to add an option to pass in a glob matcher that forces files to be copied instead of compiled regardless of the extension. So you could pass an option to app.coffee like forceCopy: 'assets/vendor/**'. If there is enough demand for this or if someone wants to submit a PR, we could definitely make it happen!

from roots.

felixknox avatar felixknox commented on July 19, 2024

The rules makes sense. The file in question is a file from an external library managed through bower. So I am not able to change the name of the file without losing consistency.
It is bad naming convention from the library supplier, but it is quite common (also there is no file without the extra dot in the package)

forceCopy would work as external lib files usually does not need to be compiled.

from roots.

jescalan avatar jescalan commented on July 19, 2024

Any interest in taking a stab at contributing forceCopy? It might be a good spot to jump in to the codebase, and I'd be happy to help. Otherwise I can make it happen eventually, but it might be a bit since I have a lot on my plate at the moment, and it's not an issue affecting my company at the moment, so it's hard to get these things to the top of the priorities list.

from roots.

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.