Skip to content

Commit fa859a3

Browse files
committed
Moves placement of main_js script.
1 parent 27af0e4 commit fa859a3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* This file is included in the production.js build file
33
* To know exactly at what point this file is inserted, view `the-magic/boot/index.js` and look for `main_js`
4-
* `store`, `router`, `config`, `app` are global variables for use in this file, however this script is inserted before the root component is set so `app`` won't be available until the app loads
4+
* `store`, `router`, `config`, `app` are global variables for use in this file, keep in mind this script is run just before the root component is mounted
55
*/
66

77
const Vue = require('vue')

the-magic/boot/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ const meta_tags = require('./meta-tags.js')
1212

1313
Vue.config.productionTip = false;
1414

15-
/**
16-
* This is our config.folderStructure.js entry file
17-
*/
18-
require(main_js);
19-
2015
/**
2116
* This is our config.folderStructure.css entry file
2217
*/
@@ -43,6 +38,11 @@ global.app = new Vue(
4338
)
4439
);
4540

41+
/**
42+
* This is our config.folderStructure.js entry file
43+
*/
44+
require(main_js);
45+
4646
// Check if user is logged in then launch the app unless we are rendering from the server
4747
if (Vue.prototype.$isServer) {
4848
app.$mount("#app");

0 commit comments

Comments
 (0)