{"action":"closed","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1692","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1692/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1692/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1692/events","html_url":"https://github.com/webpack/webpack/issues/1692","id":119902675,"number":1692,"title":"nw.js","user":{"login":"ilya2306","id":8626231,"avatar_url":"https://avatars.githubusercontent.com/u/8626231?v=3","gravatar_id":"","url":"https://api.github.com/users/ilya2306","html_url":"https://github.com/ilya2306","followers_url":"https://api.github.com/users/ilya2306/followers","following_url":"https://api.github.com/users/ilya2306/following{/other_user}","gists_url":"https://api.github.com/users/ilya2306/gists{/gist_id}","starred_url":"https://api.github.com/users/ilya2306/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilya2306/subscriptions","organizations_url":"https://api.github.com/users/ilya2306/orgs","repos_url":"https://api.github.com/users/ilya2306/repos","events_url":"https://api.github.com/users/ilya2306/events{/privacy}","received_events_url":"https://api.github.com/users/ilya2306/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-12-02T09:38:07Z","updated_at":"2016-08-14T08:10:48Z","closed_at":"2016-08-14T08:10:48Z","body":"How can i configure my webpack to use node-webkit modules like 'fs', 'http', 'https' in my node-webkit project. I also want webpack-dev-server support. Now my config is:\r\n```\r\nmodule.exports = {\r\n    context: __dirname + \"/src\",\r\n    target : 'node-webkit',\r\n    entry  : [\r\n        'webpack/hot/dev-server',\r\n        'webpack-dev-server/client?http://localhost:8080',\r\n        './app.js'\r\n    ],\r\n    output : {\r\n        path    : \"./build\",\r\n        filename: \"app.js\"\r\n    },\r\n    module : {\r\n        loaders: [\r\n            {\r\n                test   : /\\.js?$/,\r\n                exclude: /(node_modules|bower_components)/,\r\n                loader : 'babel',\r\n                query  : {\r\n                    presets: ['es2015', 'react']\r\n                }\r\n            },\r\n            {\r\n                test  : /\\.json$/,\r\n                loader: 'json'\r\n            }\r\n        ]\r\n    },\r\n    plugins: [\r\n        new webpack.NoErrorsPlugin(),\r\n        new webpack.optimize.DedupePlugin(),\r\n    ],\r\n    resolve: {\r\n        modulesDirectories: ['node_modules'],\r\n        extensions        : ['', '.js', '.jsx']\r\n    },\r\n\r\n    devServer   : {\r\n        contentBase: \"./build\",\r\n        hot        : true\r\n    },\r\n};\r\n\r\n```\r\n\r\nAnd i run this:\r\n```\r\ndev: 'NODE_ENV=development webpack-dev-server --devtool eval --progress --colors --hot --content-base build --targer node'\r\n```\r\n\r\n```\r\nnpm run dev\r\n```"}}
{"actor":{"display_login":"bebraw"}}