Skip to content

Latest commit

 

History

History
96 lines (67 loc) · 1.3 KB

README.md

File metadata and controls

96 lines (67 loc) · 1.3 KB

Vuex boilerplate

Vue logo

Installation

yarn

or

npm install

Change API url endpoint

go to ./environment

dev.env.js -> API_URL constant for development prod.env.js -> API_URL constant for production

Config

Webpack config in ./config

Developpment

yarn dev

A page will open on localhost:5000.

Build ~ 60s

Live reload, Hot Module Replacement and Vue devtools

yarn dev2

Same as dev but with Webpack-Dashboard

Extensions

  • For Vscode
    • Vetur
    • Prettier
    • Typescript
    • Eslint
    • Sass
  • SublimeText
    • Vue-syntax-highlight
    • Prettier
    • Eslint
    • Sass
  • WebStorm/PhpStorm/InteliJ
    • Vue
    • Prettier
    • Eslint

Get Vue devtools extension

Production

yarn prod
  • pm2
  • minified bundle size
  • uglified code
  • gzipped
  • chunks vendors
  • Vue production mode
  • drop console logs and comments
yarn prod2

Same as prod but with Nodemon

yarn build:prod

Regenerate the assets