blur-admin icon indicating copy to clipboard operation
blur-admin copied to clipboard

How to import library with blur-admin.

Open evandhillon01 opened this issue 7 years ago • 5 comments

I'm trying to use AWS's amplify.js library in blur-admin. I've npm installed it, but can't seem to find the file where all the node_modules are actually included in the project. If anyone could point me in the right direction on how to import a third party node_js library, that would be super helpful.

evandhillon01 avatar Jul 26 '18 15:07 evandhillon01

They only inject bower dependencies in the project from the /gulp/conf.js

appernetic avatar Aug 04 '18 22:08 appernetic

I installed the aws-sdk with bower install aws-sdk-js. The package is fully present in bower_componenets, but isn't being included in the project. I get "AWS is not defined" when I try and instantiate a new S3 object with var s3 = new AWS.s3();

evandhillon01 avatar Aug 06 '18 17:08 evandhillon01

Has anyone added dependencies like firebase

pictassistant avatar Sep 09 '18 03:09 pictassistant

Did you manage to add external lib/module and make it work in the production environment?

majkelo avatar Apr 11 '19 01:04 majkelo

Ok, I managed to add the dependency by bower install DEPENDENCY --save and then resolved issue with different behaviour of dev and production env by:

https://gist.github.com/majkelo/1fcacd3aea7c00ad2e31e2fdf696b5e9

majkelo avatar Apr 11 '19 23:04 majkelo