Browserify -i 如何忽略完整文件夹
我在我的项目中使用 browserify,并且我想忽略整个文件夹。
我尝试过:
./node_modules/.bin/browserify -i ./react/src/foo/* -s ReactFoo react/src/foo/index.ts --external react --external react-dom > react/dist/bridge.js';
但它不起作用。
尝试了多个合成器(react/src/foo/
、react/src/foo
、react/src/foo/**
)
我现在 ,当前唯一有效的解决方案是手动忽略所有文件:
./node_modules/.bin/browserify -i ./react/src/foo/state/actions.ts -i ./react/src/foo/state/index.ts -i ./react/src/foo/state/reducer.ts -s ReactFoo react/src/foo/index.ts --external react --external react-dom > react/dist/bridge.js';
I'm using browserify in my project, and I want to ignore a whole folder.
I tried :
./node_modules/.bin/browserify -i ./react/src/foo/* -s ReactFoo react/src/foo/index.ts --external react --external react-dom > react/dist/bridge.js';
but it's not working.
I tried multiple synthax (react/src/foo/
, react/src/foo
, react/src/foo/**
)
For now, the only solution currently working is to ignore all file manually :
./node_modules/.bin/browserify -i ./react/src/foo/state/actions.ts -i ./react/src/foo/state/index.ts -i ./react/src/foo/state/reducer.ts -s ReactFoo react/src/foo/index.ts --external react --external react-dom > react/dist/bridge.js';
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论