Comments (5)
It doesn't really make sense to use globify and output to stdout, since the whole purpose of globify is to output multiple bundles. Can you elaborate on your use-case?
from globify.
I just need the first feature, Windows glob support.
Features
- Supports glob patterns for entry files - even on Windows
- Optionally create separate browserify bundles for each entry file
from globify.
Ah, ok. That's totally valid. Thanks for the clarification.
I've always used the --outfile
argument, so I've never tested writing to stdout before. But you're right; it should be supported, and the console.log()
statement interferes with that. I think the best fix is to wrap the console.log()
statement in an if
condition, based on whether the --outfile
argument is present. If it's not present, then we can assume that the user intends to output to stdout, so we shouldn't log anything else.
from globify.
Thanks. Your fix sounds good. Sorry if I came off as caustic in the first comment. Working with browserify and co on Windows has been problematic and I spent that day looking at more fun issues with Windows like __dirname being /foo\bar\ and such 😬
from globify.
Ran across this issue today, the console.log breaks stdout when piping to other tools that expect a Browserify bundle piped into them.
from globify.
Related Issues (12)
- it doesn't support multiple paths HOT 1
- Excellent useful and helpful project HOT 1
- Using the programmatic API of browserify HOT 3
- Watch subclasses build main classes HOT 7
- Parse arbritary glob parameters HOT 1
- Output to file next to input file HOT 2
- Exclude from glob HOT 5
- Compatibility with Uglifyify HOT 10
- Options -v -d HOT 7
- Uglifyjs support HOT 1
- Support watchify pipe output option HOT 1
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 globify.