Basic starter based on Webpack from Vue cli used in the course Use TypeScript to Develop Vue.js Web Applications
Here are the steps taken in this starter:
- Add tsconfig.json
- Add tsloader to build/webpack.base.conf.js, plus add/update extensions to ts. Remember to install ts-loader and TypeScript
- Add vue-shim.d.ts in order to TypeScript recognize and treat .vue files
- build/vue-loader.conf.js: add
esModule: true
- Rename
.js
to.ts
files insrc
folder - Use
lang="ts"
in .vue files