{"action":"closed","issue":{"url":"https://api.github.com/repos/cretueusebiu/laravel-vue-spa/issues/73","repository_url":"https://api.github.com/repos/cretueusebiu/laravel-vue-spa","labels_url":"https://api.github.com/repos/cretueusebiu/laravel-vue-spa/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/cretueusebiu/laravel-vue-spa/issues/73/comments","events_url":"https://api.github.com/repos/cretueusebiu/laravel-vue-spa/issues/73/events","html_url":"https://github.com/cretueusebiu/laravel-vue-spa/issues/73","id":300081716,"number":73,"title":"Help! Compile new js","user":{"login":"ericksongmr","id":35790384,"avatar_url":"https://avatars0.githubusercontent.com/u/35790384?v=4","gravatar_id":"","url":"https://api.github.com/users/ericksongmr","html_url":"https://github.com/ericksongmr","followers_url":"https://api.github.com/users/ericksongmr/followers","following_url":"https://api.github.com/users/ericksongmr/following{/other_user}","gists_url":"https://api.github.com/users/ericksongmr/gists{/gist_id}","starred_url":"https://api.github.com/users/ericksongmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericksongmr/subscriptions","organizations_url":"https://api.github.com/users/ericksongmr/orgs","repos_url":"https://api.github.com/users/ericksongmr/repos","events_url":"https://api.github.com/users/ericksongmr/events{/privacy}","received_events_url":"https://api.github.com/users/ericksongmr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-26T01:16:54Z","updated_at":"2018-02-26T07:41:19Z","closed_at":"2018-02-26T07:41:18Z","author_association":"NONE","body":"Hi, thank you in advance for your help and for all this work that you have done that is great.\r\nThe problem that I have now is that I have created a custom layout, and I have managed to load everything well including the css, but in the original dashboard it asks me to load the following js:\r\n```\r\n</div>\r\n    <!-- Javascript files-->\r\n    <script src=\"vendor/jquery/jquery.min.js\"></script>\r\n    <script src=\"vendor/bootstrap/js/bootstrap.min.js\"></script>\r\n    <!-- Main File-->\r\n    <script src=\"js/front.js\"></script>\r\n  </body>\r\n```\r\nThe first 2 do not need them because they are already integrated, but the one that says front.js if I need it to work properly.\r\nTry loading it like this in webpack.mix.js:\r\n```\r\nmix\r\n  .js([\r\n'resources/assets/js/app.js',\r\n'resources/assets/js/plugins/front.js'\r\n], 'public/js')\r\n  .sass('resources/assets/sass/app.scss', 'public/css')\r\n\r\n  .sourceMaps()\r\n  .disableNotifications()\r\n\r\nif (mix.inProduction()) {\r\n  mix.version()\r\n\r\n  mix.extract([\r\n    'vue',\r\n    'vform',\r\n    'axios',\r\n    'vuex',\r\n    'jquery',\r\n    'popper.js',\r\n    'vue-i18n',\r\n    'vue-meta',\r\n    'js-cookie',\r\n    'bootstrap',\r\n    'vue-router',\r\n    'sweetalert2',\r\n    'vuex-router-sync',\r\n    '@fortawesome/fontawesome',\r\n    '@fortawesome/vue-fontawesome'\r\n  ])\r\n}\r\n```\r\nIf it compile but the dashboard still does not work as it should, I guess it must be in order and it has to be right after the bootstrap.min.js\r\nI also tried changing the order, first front.sj and then app.js but it did not work either.\r\nI do not know if it should be added in mix.extract but I do not know how to call the js.\r\n\r\nSo what would be the correct way to compile it so that it appears right after the bootstrap.min.js and the dasboard can work properly? Thanks!"}}
{"actor":{"display_login":"cretueusebiu"}}