vue-hot-typescript-loader
Enable hot module replacement (HMR) on your typescript vue components.
This loader is for Vue components written in .ts
. If you are using .vue
file, you don't need this loader.
This code is a based on vue-hot-reload-loader.
Installation
# NPM $ npm install --save-dev vue-hot-typescript-loader
Usage
Webpack
Ensure the webpack entry points for your debug build includes HMR code
moduleexports = entry: app: 'webpack-hot-middleware/client' './src/app.ts'
Update your webpack config to apply vue-hot-typescript-loader
after initial compilation has occured
moduleexports = module: rules: test: /\.ts$/ use: 'vue-hot-typescript-loader' 'ts-loader' include: path
Source Files
Supports one class per file. As long as the class extends Vue and in turn is exported, it will be created with HMR support at runtime.
es6
;
;
commonjs
; // commonjs import ;
Authors
License
This project is licensed under the MIT License - see the LICENSE file for details