Created
May 22, 2018 21:20
-
-
Save sslotsky/d85c49f00b6f72b7299176111ed9e191 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const browserify = require("@cypress/browserify-preprocessor"); | |
module.exports = on => { | |
const options = browserify.defaultOptions; | |
options.browserifyOptions.transform[1][1].plugins.push([ | |
"transform-define", | |
{ | |
"process.env.API_URL": process.env.API_URL | |
} | |
]); | |
on("file:preprocessor", browserify(options)); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment