{"action":"created","issue":{"url":"https://api.github.com/repos/HenrikJoreteg/hjs-webpack/issues/37","labels_url":"https://api.github.com/repos/HenrikJoreteg/hjs-webpack/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/HenrikJoreteg/hjs-webpack/issues/37/comments","events_url":"https://api.github.com/repos/HenrikJoreteg/hjs-webpack/issues/37/events","html_url":"https://github.com/HenrikJoreteg/hjs-webpack/issues/37","id":90209989,"number":37,"title":"html function does not return full context object as stated in documentation","user":{"login":"jeffboyus","id":931238,"avatar_url":"https://avatars.githubusercontent.com/u/931238?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffboyus","html_url":"https://github.com/jeffboyus","followers_url":"https://api.github.com/users/jeffboyus/followers","following_url":"https://api.github.com/users/jeffboyus/following{/other_user}","gists_url":"https://api.github.com/users/jeffboyus/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffboyus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffboyus/subscriptions","organizations_url":"https://api.github.com/users/jeffboyus/orgs","repos_url":"https://api.github.com/users/jeffboyus/repos","events_url":"https://api.github.com/users/jeffboyus/events{/privacy}","received_events_url":"https://api.github.com/users/jeffboyus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-22T20:52:23Z","updated_at":"2015-06-22T21:54:16Z","closed_at":null,"body":"In the html function of the config file, the context argument does not return the CSS filename as stated.  There is no mention in the [documentation](https://github.com/HenrikJoreteg/hjs-webpack#html-optional-can-be-boolean-or-function) of any trigger/option that would make this attribute show up or not.\r\n\r\n```javascript\r\nvar getConfig = require('hjs-webpack')\r\nvar isDev = process.env.NODE_ENV !== 'production'\r\n\r\nmodule.exports = getConfig({\r\n  in: 'src/app.js',\r\n  out: 'build',\r\n  clearBeforeBuild: true,\r\n  isDev: isDev,\r\n  html: function (context) {\r\n    console.log(context); // <-------- no context.css attribute is generated\r\n    return {\r\n      'index.html': '<!DOCTYPE><body><h1>Hello World</h1></body>'\r\n    }\r\n  }\r\n})\r\n```\r\n\r\n> Using the LESS styles option. Imported the correct LESS loader.  Works when running in dev and the LESS file is required on a view.  But will not work when running build command (undefined context.css attribute)."},"comment":{"url":"https://api.github.com/repos/HenrikJoreteg/hjs-webpack/issues/comments/114276057","html_url":"https://github.com/HenrikJoreteg/hjs-webpack/issues/37#issuecomment-114276057","issue_url":"https://api.github.com/repos/HenrikJoreteg/hjs-webpack/issues/37","id":114276057,"user":{"login":"jeffboyus","id":931238,"avatar_url":"https://avatars.githubusercontent.com/u/931238?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffboyus","html_url":"https://github.com/jeffboyus","followers_url":"https://api.github.com/users/jeffboyus/followers","following_url":"https://api.github.com/users/jeffboyus/following{/other_user}","gists_url":"https://api.github.com/users/jeffboyus/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffboyus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffboyus/subscriptions","organizations_url":"https://api.github.com/users/jeffboyus/orgs","repos_url":"https://api.github.com/users/jeffboyus/repos","events_url":"https://api.github.com/users/jeffboyus/events{/privacy}","received_events_url":"https://api.github.com/users/jeffboyus/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T21:54:16Z","updated_at":"2015-06-22T21:54:16Z","body":"Nope, that was it.  Did not see that little piece of info.  Moral of the story: Always check the commit history"}}