2017-06-19 64 views
0

我期待在我的反應項目中包含this插件。它似乎安裝了舊的skool方式,即使用腳本標籤。有誰知道如何做到這一點?我的項目層次如下:在反應項目中包含常規JS文件

. 
├── app 
│   ├── app.js 
│   ├── components 
│   ├── containers 
│   ├── favicon.ico 
│   ├── global-styles.css 
│   ├── global-styles.js 
│   ├── i18n.js 
│   ├── index.html 
│   ├── manifest.json 
│   ├── reducers.js 
│   ├── routes.js 
│   ├── store.js 
│   ├── tests 
│   ├── translations 
│   └── utils 
├── appveyor.yml 
├── Changelog.md 
├── cloudformation-templates 
│   ├── app-stack.json 
│   └── static-site-and-photobucket.json 
├── docs 
│   ├── css 
│   ├── general 
│   ├── js 
│   ├── README.md 
│   └── testing 
├── internals 
│   ├── config.js 
│   ├── generators 
│   ├── mocks 
│   ├── scripts 
│   ├── testing 
│   └── webpack 
├── LICENSE.md 
├── MAINTAINERS 
├── node_modules 
│   ├── abab 
... 
│   └── yauzl 
├── package.json 
├── README.md 
├── server 
│   ├── index.js 
│   ├── logger.js 
│   └── middlewares 
└── yarn.lock 

我正在使用反應樣板作爲我的應用程序腳手架。謝謝!

回答

1

自述文件中的說明很糟糕。你可以要求它很好。

npm install --save exif-js 

然後

var exif = require('exif-js'); 
+0

非常好,謝謝。 –