Skip to content

tbhuabi/angular-hot-reload-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-hot-reload-loader

npm i @angularclass/hmr angular-hot-reload-loader -D
// # webpack.config.js

module.exports = {
    module: {
        rules: [{
            test: /(?:\.ngfactory\.js|\.ngstyle\.js|\.ts)$/,
            use: isProduction ? ['@ngtools/webpack'] : ['ng-router-loader', 'awesome-typescript-loader', 'angular2-template-loader', {
                loader: 'angular-hot-reload-loader',
                options: {
                    rootModule: './src/app/app.module#AppModule'
                }
            }]
        }]
    }
}

About

angular 项目热更新 webpack loader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published