{"action":"created","issue":{"url":"https://api.github.com/repos/FormidableLabs/webpack-dashboard/issues/121","repository_url":"https://api.github.com/repos/FormidableLabs/webpack-dashboard","labels_url":"https://api.github.com/repos/FormidableLabs/webpack-dashboard/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/webpack-dashboard/issues/121/comments","events_url":"https://api.github.com/repos/FormidableLabs/webpack-dashboard/issues/121/events","html_url":"https://github.com/FormidableLabs/webpack-dashboard/issues/121","id":178854932,"number":121,"title":"only log worked","user":{"login":"shengxinjing","id":1905176,"avatar_url":"https://avatars.githubusercontent.com/u/1905176?v=3","gravatar_id":"","url":"https://api.github.com/users/shengxinjing","html_url":"https://github.com/shengxinjing","followers_url":"https://api.github.com/users/shengxinjing/followers","following_url":"https://api.github.com/users/shengxinjing/following{/other_user}","gists_url":"https://api.github.com/users/shengxinjing/gists{/gist_id}","starred_url":"https://api.github.com/users/shengxinjing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shengxinjing/subscriptions","organizations_url":"https://api.github.com/users/shengxinjing/orgs","repos_url":"https://api.github.com/users/shengxinjing/repos","events_url":"https://api.github.com/users/shengxinjing/events{/privacy}","received_events_url":"https://api.github.com/users/shengxinjing/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FormidableLabs/webpack-dashboard/labels/Question","name":"Question","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-23T11:38:41Z","updated_at":"2016-10-20T15:29:38Z","closed_at":null,"body":"> Please provide a description of the bug / issue, and provide the details below:\r\n\r\n====================================================================\r\n\r\n###### If the issue is visual, please provide screenshots here\r\n![dash-not-working](https://cloud.githubusercontent.com/assets/1905176/18784523/431e434a-81c5-11e6-8319-94cad36aa8d1.png)\r\n\r\n```\r\n/**\r\n * Created by sheng on 16/7/14.\r\n */\r\n'use strict'\r\nvar webpack = require('webpack')\r\nvar HtmlWebpackPlugin = require('html-webpack-plugin')\r\nvar ExtractTextPlugin = require('extract-text-webpack-plugin')\r\nvar DashboardPlugin = require('webpack-dashboard/plugin')\r\nvar Dashboard = require('webpack-dashboard');\r\nvar dashboard = new Dashboard();\r\nvar path = require('path')\r\n\r\nvar config = {\r\n  entry: __dirname + '/src/app.js',\r\n  output: {\r\n    path: 'dist',\r\n    // filename: 'bundle.js'\r\n    filename: 'bundle.[hash].js'\r\n  },\r\n  resolve: {\r\n    modulesDirectories: ['node_modules', './'],\r\n    alias: {\r\n      'npm': __dirname + '/node_modules'\r\n\r\n    },\r\n    extensions: ['', '.js', '.html', '.css', '.styl']\r\n  },\r\n  module: {\r\n    loaders: [{\r\n      test: /\\.js$/,\r\n      loaders: ['ng-annotate?add=true', 'babel'],\r\n      exclude: /node_modules/\r\n    }, {\r\n      test: /\\.html$/,\r\n      loader: 'html'\r\n    }, {\r\n      test: /\\.css$/,\r\n      loader: ExtractTextPlugin.extract(\"style-loader\",\"css-loader\")\r\n    }, {\r\n      test: /\\.jade$/,\r\n      loader: \"pug-html-loader\"\r\n    }, {\r\n      test: /\\.(png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot)$/,\r\n      loader: 'file'\r\n    }, {\r\n      test: /\\.styl$/,\r\n      loader: ExtractTextPlugin.extract(\r\n        'style-loader',\r\n        'css-loader?sourceMap!stylus?sourceMap'\r\n      )\r\n    }]\r\n  },\r\n  plugins: [\r\n    // new ExtractTextPlugin(\"[name].css\"),\r\n    new DashboardPlugin(dashboard.setData),\r\n    new webpack.BannerPlugin(\"Copyright addnewer inc.\"),\r\n    new ExtractTextPlugin(\"styles.css\"),\r\n    new HtmlWebpackPlugin({\r\n      title: 'Custom template using Handlebars',\r\n      template: 'src/index.jade',\r\n      inject: 'body'\r\n    }),\r\n    new webpack.DefinePlugin({\r\n      DEV: true,\r\n      RAP: false\r\n    })\r\n  ],\r\n\r\n\r\n  devtool: 'eval-source-map',\r\n\r\n  //   devtool:false,\r\n  devServer: {\r\n    port: 3000,\r\n    contentBase: __dirname,\r\n    colors: true,\r\n    hot: true,\r\n    proxy: {\r\n      '/rap/*': {\r\n        target: 'http://192.168.0.30/mockjsdata/5',\r\n        rewrite: function(req) {\r\n          req.url = req.url.replace(/^\\/rap/, '')\r\n          console.log(req.url)\r\n        },\r\n        changeOrigin: true,\r\n        secure: false\r\n      },\r\n      '/dev/*': {\r\n        target: 'http://dev.tmcms.com',\r\n        rewrite: function(req, res) {\r\n          req.url = req.url.replace(/^\\/dev/, '')\r\n          console.log(res)\r\n        },\r\n        changeOrigin: true,\r\n        secure: false\r\n      }\r\n    }\r\n  }\r\n}\r\nmodule.exports = config\r\n\r\n```\r\n\r\n====================================================================\r\n\r\n###### Steps to reproduce the problem\r\n\r\n====================================================================\r\n\r\n###### Please provide a gist of relevant files\r\n\r\n1. package.json (specifically the script you are using to start the dashboard)\r\n2. webpack.config.js\r\n3. index.js (Your express based dev server, if applicable)\r\n\r\n====================================================================\r\n\r\n###### More Details\r\n\r\n- What operating system are you on?\r\n- What terminal application are you using?\r\n- What version of webpack-dashboard are you using?\r\n- What is the output of running `echo $TERM`?\r\n"},"comment":{"url":"https://api.github.com/repos/FormidableLabs/webpack-dashboard/issues/comments/255140385","html_url":"https://github.com/FormidableLabs/webpack-dashboard/issues/121#issuecomment-255140385","issue_url":"https://api.github.com/repos/FormidableLabs/webpack-dashboard/issues/121","id":255140385,"user":{"login":"asilaghi","id":1656960,"avatar_url":"https://avatars.githubusercontent.com/u/1656960?v=3","gravatar_id":"","url":"https://api.github.com/users/asilaghi","html_url":"https://github.com/asilaghi","followers_url":"https://api.github.com/users/asilaghi/followers","following_url":"https://api.github.com/users/asilaghi/following{/other_user}","gists_url":"https://api.github.com/users/asilaghi/gists{/gist_id}","starred_url":"https://api.github.com/users/asilaghi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asilaghi/subscriptions","organizations_url":"https://api.github.com/users/asilaghi/orgs","repos_url":"https://api.github.com/users/asilaghi/repos","events_url":"https://api.github.com/users/asilaghi/events{/privacy}","received_events_url":"https://api.github.com/users/asilaghi/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T15:29:38Z","updated_at":"2016-10-20T15:29:38Z","body":"I too see the same issue, running like this: \r\n`\"scripts\": {\r\n    \"build\": \"webpack\",\r\n    \"start\": \"webpack-dashboard -m -- webpack-dev-server\"\r\n  },`\r\n\r\nusing webpack 1.13.2, webpack-dashboard 0.2.0, webpack-dev-server 1.16.2 on macOS Sierra"}}
{"actor":{"display_login":"asilaghi"}}