{"action":"closed","issue":{"url":"https://api.github.com/repos/MikaAK/s3-plugin-webpack/issues/3","labels_url":"https://api.github.com/repos/MikaAK/s3-plugin-webpack/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/MikaAK/s3-plugin-webpack/issues/3/comments","events_url":"https://api.github.com/repos/MikaAK/s3-plugin-webpack/issues/3/events","html_url":"https://github.com/MikaAK/s3-plugin-webpack/issues/3","id":102397513,"number":3,"title":"cdnizerOptions error","user":{"login":"westn","id":224833,"avatar_url":"https://avatars.githubusercontent.com/u/224833?v=3","gravatar_id":"","url":"https://api.github.com/users/westn","html_url":"https://github.com/westn","followers_url":"https://api.github.com/users/westn/followers","following_url":"https://api.github.com/users/westn/following{/other_user}","gists_url":"https://api.github.com/users/westn/gists{/gist_id}","starred_url":"https://api.github.com/users/westn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westn/subscriptions","organizations_url":"https://api.github.com/users/westn/orgs","repos_url":"https://api.github.com/users/westn/repos","events_url":"https://api.github.com/users/westn/events{/privacy}","received_events_url":"https://api.github.com/users/westn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-21T14:55:20Z","updated_at":"2015-08-31T07:41:39Z","closed_at":"2015-08-31T07:41:39Z","body":"I've been trying to use this with both the the options on this page and with the following:\r\n```\r\nnew S3Plugin({\r\n  // s3Options are required\r\n  s3Options: {\r\n    accessKeyId: 'ACCESSKEY',\r\n    secretAccessKey: 'secretAccessKey',\r\n  },\r\n  s3UploadOptions: {\r\n    Bucket: 'myBucket',\r\n    ACL: 'public-read'\r\n  }\r\n})\r\n```\r\n\r\nIn both cases I get an error \r\n\r\n```\r\n    if (!this.cdnizerOptions.files) this.cdnizerOptions.files = [];\r\n                            ^\r\nTypeError: Cannot read property 'files' of undefined\r\n    at new S3Plugin (c:\\Users\\Fredrik\\Documents\\LBC\\react\\twitch-visualizer\\node\r\n_modules\\webpack-s3-plugin\\dist\\s3_plugin.js:96:29)\r\n    at Object.<anonymous> (c:\\Users\\Fredrik\\Documents\\LBC\\react\\twitch-visualize\r\nr\\webpack-production.config.js:30:5)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Module.require (module.js:364:17)\r\n    at require (module.js:380:17)\r\n    at module.exports (c:\\Users\\Fredrik\\Documents\\LBC\\react\\twitch-visualizer\\no\r\nde_modules\\webpack\\bin\\convert-argv.js:80:13)\r\n    at Object.<anonymous> (c:\\Users\\Fredrik\\Documents\\LBC\\react\\twitch-visualize\r\nr\\node_modules\\webpack\\bin\\webpack.js:54:40)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Function.Module.runMain (module.js:497:10)\r\n    at startup (node.js:119:16)\r\n\r\nnpm ERR! Twitch-Visualizer@1.0.0 prod: `webpack -p --config webpack-production.c\r\nonfig.js --progress --colors`\r\nnpm ERR! Exit status 8\r\nnpm ERR!\r\nnpm ERR! Failed at the Twitch-Visualizer@1.0.0 prod script.\r\nnpm ERR! This is most likely a problem with the Twitch-Visualizer package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     webpack -p --config webpack-production.config.js --progress --color\r\ns\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls Twitch-Visualizer\r\nnpm ERR! There is likely additional logging output above.\r\nnpm ERR! System Windows_NT 6.2.9200\r\nnpm ERR! command \"c:\\\\Program Files\\\\nodejs\\\\node.exe\" \"c:\\\\Program Files\\\\nodej\r\ns\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"run\" \"prod\"\r\nnpm ERR! cwd c:\\Users\\Fredrik\\Documents\\LBC\\react\\twitch-visualizer\r\nnpm ERR! node -v v0.10.32\r\nnpm ERR! npm -v 1.4.28\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR!\r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     c:\\Users\\Fredrik\\Documents\\LBC\\react\\twitch-visualizer\\npm-debug.lo\r\ng\r\nnpm ERR! not ok code 0\r\n```"}}