hughsk / envify

:wrench: Selectively replace Node-style environment variables with plain strings.
902 stars 57 forks source link

How to configure it with karma.conf? #47

Open eatsjobs opened 8 years ago

eatsjobs commented 8 years ago
browserify: {
            debug: true,
            transform: [
                'babelify',
                ['envify', 'browserify-istanbul', { instrumenter: require('isparta') }]
            ]
        }

I tried somenthing like this but i got an error: node_modules/karma-browserify/node_modules/browserify/index.js:313 opts._flags = '_flags' in opts ? opts._flags : self._options;Cannot use 'in' operator to search for '_flags' in envify

am i missing some configuration?

eatsjobs commented 8 years ago
browserify: {
            debug: true,
            transform: [
                'envify',
                'babelify',
                [ 'browserify-istanbul', { instrumenter: require('isparta') }]
            ]
        }

Sorry my fault. in this way works. Could be added this in the README.md? it can be useful for others i think