{"action":"created","issue":{"url":"https://api.github.com/repos/artf/grapesjs/issues/136","repository_url":"https://api.github.com/repos/artf/grapesjs","labels_url":"https://api.github.com/repos/artf/grapesjs/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/artf/grapesjs/issues/136/comments","events_url":"https://api.github.com/repos/artf/grapesjs/issues/136/events","html_url":"https://github.com/artf/grapesjs/issues/136","id":240202198,"number":136,"title":"npm run build issue","user":{"login":"Chronis77","id":29866859,"avatar_url":"https://avatars1.githubusercontent.com/u/29866859?v=3","gravatar_id":"","url":"https://api.github.com/users/Chronis77","html_url":"https://github.com/Chronis77","followers_url":"https://api.github.com/users/Chronis77/followers","following_url":"https://api.github.com/users/Chronis77/following{/other_user}","gists_url":"https://api.github.com/users/Chronis77/gists{/gist_id}","starred_url":"https://api.github.com/users/Chronis77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chronis77/subscriptions","organizations_url":"https://api.github.com/users/Chronis77/orgs","repos_url":"https://api.github.com/users/Chronis77/repos","events_url":"https://api.github.com/users/Chronis77/events{/privacy}","received_events_url":"https://api.github.com/users/Chronis77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-03T15:16:03Z","updated_at":"2017-07-04T11:53:00Z","closed_at":null,"body":"Hi, \r\n\r\nI am really hoping someone can point me in the right direction. I need to make a couple of styling and functional changes to the core of grapesjs to cater for my requirements.. \r\n\r\n**Issue number 1:**\r\nI am running \"npm run build\". It gets to the webpack command and then fails with a \r\n\"ERROR in ./dist/grapes.min.js\" from UglifyJS \r\nUnexpectedtoken: punc()...\" \r\n\r\nNow i am assuming this has something to do this converting the code to ES5 for Uglify to compile. Any ideas what the issue could be. I haven't really altered the config file and i have installed babel babel-loader and the es2015 present, but it still seems to throw that error. \r\n\r\n**Issue number 2:**\r\nIf i comment out \"webpack.optimize.UglifyJsPlugin\" from the plugins it finishes running, however the code i am left with doesn't seem correct. It has multiple references to \"__webpack_require__\" and if i embed it on the web page i get that error that grapejs is not defined. \r\n\r\nMy environment is: \r\n- Windows 10.\r\n- Nodejs 6.9.1\r\n- NPM 3.10.9\r\n\r\nThe help would be greatly appreciated. \r\n"},"comment":{"url":"https://api.github.com/repos/artf/grapesjs/issues/comments/312858649","html_url":"https://github.com/artf/grapesjs/issues/136#issuecomment-312858649","issue_url":"https://api.github.com/repos/artf/grapesjs/issues/136","id":312858649,"user":{"login":"Chronis77","id":29866859,"avatar_url":"https://avatars1.githubusercontent.com/u/29866859?v=3","gravatar_id":"","url":"https://api.github.com/users/Chronis77","html_url":"https://github.com/Chronis77","followers_url":"https://api.github.com/users/Chronis77/followers","following_url":"https://api.github.com/users/Chronis77/following{/other_user}","gists_url":"https://api.github.com/users/Chronis77/gists{/gist_id}","starred_url":"https://api.github.com/users/Chronis77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chronis77/subscriptions","organizations_url":"https://api.github.com/users/Chronis77/orgs","repos_url":"https://api.github.com/users/Chronis77/repos","events_url":"https://api.github.com/users/Chronis77/events{/privacy}","received_events_url":"https://api.github.com/users/Chronis77/received_events","type":"User","site_admin":false},"created_at":"2017-07-04T11:53:00Z","updated_at":"2017-07-04T11:53:00Z","body":"Thank you so much for the help. It was my node version!"}}
{"actor":{"display_login":"Chronis77"}}