/vue3-typescript-webpack-boilerplate

new boilerplate - vue3, typescript, webpack5, babel 8.0

Primary LanguageJavaScriptMIT LicenseMIT

Dependencies

  • vue@^3.0.5
  • vue-router@^4.0.4
  • vuex@^4.0.0
  • @vue/compiler-sfc@^3.0.5
  • webpack@^5.9.0
  • vue-loader@^16.1.2
  • babel-loader@^8.2.2
  • babel-preset-typescript-vue3@2.0.8

Installation

Install packages with YARN by running:

yarn install

In case you want to use NPM, run:

npm install

Usage

Set HOST and PORT for dev server

/**    config/index.js   */
module.exports = {
  dev: {
    ...
    // Various Dev Server settings
    host: HOST_ADDRESS, // can be overwritten by process.env.HOST
    port: PORT_NUMBER, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
   ...
}

Start Dev server

yarn run start
#or
npm run start

Build

yarn run build
#or
npm run build

Todo

  • Add example pages and logics
  • Add unit test
  • Update dependencies

License

MIT