Add-project-description-here | Chingu Voyage-6 | https://chingu.io/
A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
@
- alias forsrc
folder*
- alias forsrc/components/pages/
folder+
- alias forsrc/components/common/
folder
insteaad of full path like this:
import MainPage from 'src/components/pages/main/index';
used it alias:
import MainPage from '*/main/index';
Alliases are defined in file build/webpack.base.conf.js
. just search alias
keyworld
For deploy purposes was added vue-cli-ghpages module as dev depencency, so install it once by runing:
npm i
To build and deploy project run the command:
npm run deploy
For a detailed explanation on how things work, check out the guide and docs for vue-loader.