Comments (3)
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.
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.
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)
- Npm warning when installing Roots globally ([email protected])
- Npm warning when initializing new Roots project ([email protected]) HOT 1
- Confused about `ignores` and `dump_dirs` configuration options HOT 5
- v1.roots.cx 500 Internal Server Error HOT 10
- Compile only "changed files" from watch command HOT 3
- Can't get handlebars.js to work HOT 3
- Make analytics opt-in HOT 3
- Installation not working on Mac OSX HOT 9
- Roots error when installing globally HOT 3
- Roots fails to run after install HOT 1
- Official nodejs Docker images need to be rewritten to support roots HOT 1
- use js rather than coffee HOT 2
- Public folder created outside root directory HOT 1
- Before Hook Promise HOT 3
- Axis Bold as Love HOT 1
- error fatal: Could not read from remote repository. HOT 1
- Roots won't install HOT 1
- Roots JS-API Use Coffeescript.register() error HOT 1
- Roots watch uses app.production.coffee HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roots.