angular-hot-reload-loader

2.0.0 • Public • Published

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'
                }
            }]
        }]
    }
}

Package Sidebar

Install

npm i angular-hot-reload-loader

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

3.29 kB

Total Files

4

Last publish

Collaborators

  • tanbo