{"action":"opened","issue":{"url":"https://api.github.com/repos/vuejs-templates/webpack/issues/229","repository_url":"https://api.github.com/repos/vuejs-templates/webpack","labels_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/229/comments","events_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/229/events","html_url":"https://github.com/vuejs-templates/webpack/issues/229","id":172282325,"number":229,"title":"Fresh install throwing error. What am I missing?","user":{"login":"mightylal","id":12475330,"avatar_url":"https://avatars.githubusercontent.com/u/12475330?v=3","gravatar_id":"","url":"https://api.github.com/users/mightylal","html_url":"https://github.com/mightylal","followers_url":"https://api.github.com/users/mightylal/followers","following_url":"https://api.github.com/users/mightylal/following{/other_user}","gists_url":"https://api.github.com/users/mightylal/gists{/gist_id}","starred_url":"https://api.github.com/users/mightylal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mightylal/subscriptions","organizations_url":"https://api.github.com/users/mightylal/orgs","repos_url":"https://api.github.com/users/mightylal/repos","events_url":"https://api.github.com/users/mightylal/events{/privacy}","received_events_url":"https://api.github.com/users/mightylal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-20T17:49:37Z","updated_at":"2016-08-20T17:49:37Z","closed_at":null,"body":"Here is the error when I try to build:\r\n\r\n`ERROR in static/js/app.cd864874e8ee3721eb38.js from UglifyJs\r\nSyntaxError: Unexpected token: name (Vue) [./src/main.js:1,0]`\r\n\r\nPackage.json\r\n\r\n`{\r\n  \"name\": \"whatwhat\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"A Vue.js project\",\r\n  \"scripts\": {\r\n    \"dev\": \"node build/dev-server.js\",\r\n    \"build\": \"node build/build.js\",\r\n    \"unit\": \"karma start test/unit/karma.conf.js --single-run\",\r\n    \"e2e\": \"node test/e2e/runner.js\",\r\n    \"test\": \"npm run unit && npm run e2e\",\r\n    \"lint\": \"eslint --ext .js,.vue src test/unit/specs test/e2e/specs\"\r\n  },\r\n  \"dependencies\": {\r\n    \"vue\": \"^1.0.21\",\r\n    \"babel-runtime\": \"^6.0.0\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"babel-core\": \"^6.0.0\",\r\n    \"babel-eslint\": \"^6.1.2\",\r\n    \"babel-loader\": \"^6.0.0\",\r\n    \"babel-plugin-transform-runtime\": \"^6.0.0\",\r\n    \"babel-preset-es2015\": \"^6.0.0\",\r\n    \"babel-preset-stage-2\": \"^6.0.0\",\r\n    \"babel-register\": \"^6.0.0\",\r\n    \"connect-history-api-fallback\": \"^1.1.0\",\r\n    \"css-loader\": \"^0.23.0\",\r\n    \"eslint\": \"^2.10.2\",\r\n    \"eslint-friendly-formatter\": \"^2.0.5\",\r\n    \"eslint-loader\": \"^1.3.0\",\r\n    \"eslint-plugin-html\": \"^1.3.0\",\r\n    \"eslint-config-standard\": \"^5.1.0\",\r\n    \"eslint-plugin-promise\": \"^1.0.8\",\r\n    \"eslint-plugin-standard\": \"^1.3.2\",\r\n    \"eventsource-polyfill\": \"^0.9.6\",\r\n    \"express\": \"^4.13.3\",\r\n    \"extract-text-webpack-plugin\": \"^1.0.1\",\r\n    \"file-loader\": \"^0.8.4\",\r\n    \"function-bind\": \"^1.0.2\",\r\n    \"html-webpack-plugin\": \"^2.8.1\",\r\n    \"http-proxy-middleware\": \"^0.12.0\",\r\n    \"json-loader\": \"^0.5.4\",\r\n    \"karma\": \"^0.13.15\",\r\n    \"karma-coverage\": \"^0.5.5\",\r\n    \"karma-mocha\": \"^0.2.2\",\r\n    \"karma-phantomjs-launcher\": \"^1.0.0\",\r\n    \"karma-sinon-chai\": \"^1.2.0\",\r\n    \"karma-sourcemap-loader\": \"^0.3.7\",\r\n    \"karma-spec-reporter\": \"0.0.24\",\r\n    \"karma-webpack\": \"^1.7.0\",\r\n    \"lolex\": \"^1.4.0\",\r\n    \"mocha\": \"^2.4.5\",\r\n    \"chai\": \"^3.5.0\",\r\n    \"sinon\": \"^1.17.3\",\r\n    \"sinon-chai\": \"^2.8.0\",\r\n    \"inject-loader\": \"^2.0.1\",\r\n    \"isparta-loader\": \"^2.0.0\",\r\n    \"phantomjs-prebuilt\": \"^2.1.3\",\r\n    \"chromedriver\": \"^2.21.2\",\r\n    \"cross-spawn\": \"^2.1.5\",\r\n    \"nightwatch\": \"^0.8.18\",\r\n    \"selenium-server\": \"2.53.0\",\r\n    \"ora\": \"^0.2.0\",\r\n    \"shelljs\": \"^0.6.0\",\r\n    \"url-loader\": \"^0.5.7\",\r\n    \"vue-hot-reload-api\": \"^1.2.0\",\r\n    \"vue-html-loader\": \"^1.0.0\",\r\n    \"vue-loader\": \"^8.3.0\",\r\n    \"vue-style-loader\": \"^1.0.0\",\r\n    \"webpack\": \"^1.12.2\",\r\n    \"webpack-dev-middleware\": \"^1.4.0\",\r\n    \"webpack-hot-middleware\": \"^2.6.0\",\r\n    \"webpack-merge\": \"^0.8.3\"\r\n  }\r\n}`\r\n\r\nAnd my base webpack config file\r\n\r\n`var path = require('path')\r\nvar config = require('../config')\r\nvar utils = require('./utils')\r\nvar projectRoot = path.resolve(__dirname, '../')\r\n\r\nmodule.exports = {\r\n  entry: {\r\n    app: './src/main.js'\r\n  },\r\n  output: {\r\n    path: config.build.assetsRoot,\r\n    publicPath: process.env.NODE_ENV === 'production' ? config.build.assetsPublicPath : config.dev.assetsPublicPath,\r\n    filename: '[name].js'\r\n  },\r\n  resolve: {\r\n    extensions: ['', '.js', '.vue'],\r\n    fallback: [path.join(__dirname, '../node_modules')],\r\n    alias: {\r\n      'src': path.resolve(__dirname, '../src'),\r\n      'assets': path.resolve(__dirname, '../src/assets'),\r\n      'components': path.resolve(__dirname, '../src/components')\r\n    }\r\n  },\r\n  resolveLoader: {\r\n    fallback: [path.join(__dirname, '../node_modules')]\r\n  },\r\n  module: {\r\n    preLoaders: [\r\n      {\r\n        test: /\\.vue$/,\r\n        loader: 'eslint',\r\n        include: projectRoot,\r\n        exclude: /node_modules/\r\n      },\r\n      {\r\n        test: /\\.js$/,\r\n        loader: 'eslint',\r\n        include: projectRoot,\r\n        exclude: /node_modules/\r\n      }\r\n    ],\r\n    loaders: [\r\n      {\r\n        test: /\\.vue$/,\r\n        loader: 'vue'\r\n      },\r\n      {\r\n        test: /\\.js$/,\r\n        loader: 'babel',\r\n        include: projectRoot,\r\n        exclude: /node_modules/\r\n      },\r\n      {\r\n        test: /\\.json$/,\r\n        loader: 'json'\r\n      },\r\n      {\r\n        test: /\\.html$/,\r\n        loader: 'vue-html'\r\n      },\r\n      {\r\n        test: /\\.(png|jpe?g|gif|svg)(\\?.*)?$/,\r\n        loader: 'url',\r\n        query: {\r\n          limit: 10000,\r\n          name: utils.assetsPath('img/[name].[hash:7].[ext]')\r\n        }\r\n      },\r\n      {\r\n        test: /\\.(woff2?|eot|ttf|otf)(\\?.*)?$/,\r\n        loader: 'url',\r\n        query: {\r\n          limit: 10000,\r\n          name: utils.assetsPath('fonts/[name].[hash:7].[ext]')\r\n        }\r\n      }\r\n    ]\r\n  },\r\n  eslint: {\r\n    formatter: require('eslint-friendly-formatter')\r\n  },\r\n  vue: {\r\n    loaders: utils.cssLoaders()\r\n  }\r\n}\r\n`"}}
{"actor":{"display_login":"mightylal"}}