{"action":"closed","issue":{"url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/292","repository_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin","labels_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/292/comments","events_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/292/events","html_url":"https://github.com/ampedandwired/html-webpack-plugin/issues/292","id":148762260,"number":292,"title":"Using templates in non-standard locations","user":{"login":"icfantv","id":370054,"avatar_url":"https://avatars.githubusercontent.com/u/370054?v=3","gravatar_id":"","url":"https://api.github.com/users/icfantv","html_url":"https://github.com/icfantv","followers_url":"https://api.github.com/users/icfantv/followers","following_url":"https://api.github.com/users/icfantv/following{/other_user}","gists_url":"https://api.github.com/users/icfantv/gists{/gist_id}","starred_url":"https://api.github.com/users/icfantv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icfantv/subscriptions","organizations_url":"https://api.github.com/users/icfantv/orgs","repos_url":"https://api.github.com/users/icfantv/repos","events_url":"https://api.github.com/users/icfantv/events{/privacy}","received_events_url":"https://api.github.com/users/icfantv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-15T20:33:33Z","updated_at":"2016-04-15T21:30:03Z","closed_at":"2016-04-15T21:30:03Z","body":"This is a usage question so if better served by using StackOverflow, please let me know.\r\n\r\nMy project is still using a main.jsp page for the main webpage so I want my `template` to point to `path/to/main.jsp` but the build is barfing in lodash with the following:\r\n\r\n```\r\nERROR in   Error: Child compilation failed:\r\n  Module build failed: SyntaxError: missing ) after argument list\r\n  \r\n  - Function\r\n  \r\n  - lodash.js:13902 \r\n    [sia-web-template]/[html-webpack-plugin]/[lodash]/lodash.js:13902:16\r\n  \r\n  - lodash.js:431 apply\r\n    [sia-web-template]/[html-webpack-plugin]/[lodash]/lodash.js:431:27\r\n  \r\n  - lodash.js:14295 \r\n    [sia-web-template]/[html-webpack-plugin]/[lodash]/lodash.js:14295:16\r\n  \r\n  - lodash.js:9873 \r\n    [sia-web-template]/[html-webpack-plugin]/[lodash]/lodash.js:9873:31\r\n  \r\n  - lodash.js:13901 Function.template\r\n    [sia-web-template]/[html-webpack-plugin]/[lodash]/lodash.js:13901:20\r\n```\r\nI think it may be trying to parse the contents of the file...?\r\n\r\nIf i remove `template` and just keep `inject: 'body'` (there's nothing else present in the config object) the build succeeds, but obviously is not using my template anymore.  Any ideas here?  Is there a better solution that still let's me use cache busting?\r\n\r\nThe second issue is going to be that `filename` is relative to webpack's 'output.path' config property.  I'm going to need it in a different directory.  Is my best bet for that to use the copy plugin assuming I can get the first part working?"}}