{"action":"created","issue":{"url":"https://api.github.com/repos/numical/style-ext-html-webpack-plugin/issues/12","repository_url":"https://api.github.com/repos/numical/style-ext-html-webpack-plugin","labels_url":"https://api.github.com/repos/numical/style-ext-html-webpack-plugin/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/numical/style-ext-html-webpack-plugin/issues/12/comments","events_url":"https://api.github.com/repos/numical/style-ext-html-webpack-plugin/issues/12/events","html_url":"https://github.com/numical/style-ext-html-webpack-plugin/pull/12","id":201769983,"number":12,"title":"check against stored processed multiple files","user":{"login":"hagmandan","id":2241094,"avatar_url":"https://avatars.githubusercontent.com/u/2241094?v=3","gravatar_id":"","url":"https://api.github.com/users/hagmandan","html_url":"https://github.com/hagmandan","followers_url":"https://api.github.com/users/hagmandan/followers","following_url":"https://api.github.com/users/hagmandan/following{/other_user}","gists_url":"https://api.github.com/users/hagmandan/gists{/gist_id}","starred_url":"https://api.github.com/users/hagmandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hagmandan/subscriptions","organizations_url":"https://api.github.com/users/hagmandan/orgs","repos_url":"https://api.github.com/users/hagmandan/repos","events_url":"https://api.github.com/users/hagmandan/events{/privacy}","received_events_url":"https://api.github.com/users/hagmandan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-19T05:46:22Z","updated_at":"2017-01-19T19:19:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/numical/style-ext-html-webpack-plugin/pulls/12","html_url":"https://github.com/numical/style-ext-html-webpack-plugin/pull/12","diff_url":"https://github.com/numical/style-ext-html-webpack-plugin/pull/12.diff","patch_url":"https://github.com/numical/style-ext-html-webpack-plugin/pull/12.patch"},"body":"This is for a multiple-entry,each with their own js/css/templates, multiple-output scenario, as follows:\r\n\r\n## example directory\r\n.\r\n+-- node_modules\r\n+-- build\r\n+-- dist\r\n|   +-- page1.html\r\n|   +-- page2.html\r\n|   +-- page3.html\r\n+-- src\r\n|   +-- pages\r\n|   |   +-- page1\r\n|   |   |   +-- template.hbs\r\n|   |   |   +-- index.js\r\n|   |   |   +-- styles.css\r\n|   |   +-- page2\r\n|   |   |   +-- template.hbs\r\n|   |   |   +-- index.js\r\n|   |   |   +-- styles.css\r\n|   |   +-- page3\r\n+-- package.json\r\n+-- webpack.config.js\r\n+-- //etc...\r\n\r\n## webpack.config.js\r\n```\r\n// ... some var setup above\r\nlet pageNames = ['page1','page2','page3'];\r\n\r\npageNames.forEach((pageName) => {\r\n  entry[pageName] = `./src/pages/${pageName}`;\r\n  extractTexts[pageName] = new ExtractTextPlugin('[name]-styles.css');\r\n\r\n  loaders.push({\r\n    test: /\\.css$/,\r\n    loader: extractTexts[pageName].extract('style', 'css'),\r\n    include: [\r\n      path.resolve(__dirname, 'src', 'pages', pageName)\r\n    ]\r\n  });\r\n\r\n  plugins.push(new HtmlWebpackPlugin({\r\n    chunks: [pageName],\r\n    filename: `${pageName}.html`,\r\n    template: `src/pages/${pageName}/template.hbs`\r\n  }));\r\n\r\n  plugins.push(extractTexts[pageName]);\r\n});\r\n\r\nplugins.push(new ScriptExtHtmlWebpackPlugin({\r\n  inline: pageNames.map((pageName) => {\r\n    return `${pageName}-scripts`;\r\n  })\r\n}));\r\n\r\nplugins.push(new StyleExtHtmlWebpackPlugin());\r\n\r\n```\r\n\r\nNot sure if what I'm trying to do here is the best way, so any thoughts/suggestions would be greatly appreciated!"},"comment":{"url":"https://api.github.com/repos/numical/style-ext-html-webpack-plugin/issues/comments/273871213","html_url":"https://github.com/numical/style-ext-html-webpack-plugin/pull/12#issuecomment-273871213","issue_url":"https://api.github.com/repos/numical/style-ext-html-webpack-plugin/issues/12","id":273871213,"user":{"login":"numical","id":8082596,"avatar_url":"https://avatars.githubusercontent.com/u/8082596?v=3","gravatar_id":"","url":"https://api.github.com/users/numical","html_url":"https://github.com/numical","followers_url":"https://api.github.com/users/numical/followers","following_url":"https://api.github.com/users/numical/following{/other_user}","gists_url":"https://api.github.com/users/numical/gists{/gist_id}","starred_url":"https://api.github.com/users/numical/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numical/subscriptions","organizations_url":"https://api.github.com/users/numical/orgs","repos_url":"https://api.github.com/users/numical/repos","events_url":"https://api.github.com/users/numical/events{/privacy}","received_events_url":"https://api.github.com/users/numical/received_events","type":"User","site_admin":false},"created_at":"2017-01-19T19:19:36Z","updated_at":"2017-01-19T19:19:36Z","body":"Thank you!\r\nI'll take a look - but not until the weekend I'm afraid.\r\nIf OK, do you understand the unit tests (hint, hint)?"}}
{"actor":{"display_login":"numical"}}