Last active
February 26, 2016 12:05
-
-
Save romanonthego/c205523b6d2c82719bbc 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
loaders: [ | |
{ | |
test: /\.(jpg|png|gif|otf|ttf|eot|mp4|webm)(\?.*)?$/, // this ugly thing here for operations query support | |
loader: 'uploadcare', | |
query: { | |
publicKey: 'demopublickey', | |
privateKey: 'demoprivatekey', | |
statsFilePath: path.join(__dirname, 'build', 'uploadcare.json'), | |
resourcePathDivider: 'app', | |
}, | |
}, | |
] | |
// require('./assets/background.jpg') | |
// | |
// => "https://ucarecdn.com/85b5644f-e692-4855-9db0-8c5a83096e25/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment