Skip to content

Commit f960465

Browse files
committed
Add note on testing build files
1 parent 5646bee commit f960465

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ You can also run your `dev` & `build` tasks from the GUI to get valuable build s
5555

5656
**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**.
5757

58-
For a detailed explanation on how things work, check out the [Vue CLI docs](https://cli.vuejs.org/).
58+
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.
5959

60+
For a detailed explanation on how things work, check out the [Vue CLI docs](https://cli.vuejs.org/).
6061

6162
## Pre-Processors
6263

0 commit comments

Comments
 (0)