Skip to content

Commit 947c58f

Browse files
authored
Update README.md
1 parent dda780f commit 947c58f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ You can also run your `dev` & `build` tasks from the GUI to get valuable build s
5757

5858
**NOTE:** During development, _only your assets_ will be served from `localhost:8080` and referenced in the base template. You'll still load your site locally under your normal development domain (mysite.test, etc.). This will also cause a brief unstyled flash on page loads due to JS/CSS assets loading from javascript for development. **This flash isn't present after build, on production**.
5959

60+
Vue's CLI may incorrectly output the wrong URL for the dev server:
61+
```bash
62+
App running at: http://localhost:8080/http://localhost:8080/
63+
# Ignore this bug. Your server will be running at http://localhost:8080
64+
```
65+
6066
After running `npm run build`, the easiest way to test your build files locally is to comment the environment variable in your `.env` file, and refresh the page. This will serve your assets from the build directory, rather than webpack's dev server.
6167

6268
For a detailed explanation on how things work, check out the [Vue CLI docs](https://cli.vuejs.org/).
@@ -72,6 +78,9 @@ Note you also need to install node-sass because sass-loader depends on it as a p
7278

7379
Read more about this at https://cli.vuejs.org/guide/css.html#pre-processors
7480

81+
## Automatic Component Registration
82+
Any vue components placed within `src/components` will be registered with Vue automatically. **This requires their filenames to be in PascalCase**, eg. MyVueComponent.vue
83+
7584
## Babel Compiling
7685
This boilerplate uses babel-preset-env for configuring babel. [You can read more about it here.](https://cli.vuejs.org/config/#babel)
7786

0 commit comments

Comments
 (0)