-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Versions.
Angular CLI: 1.6.0-beta.0
Node: 8.7.0
OS: darwin x64
Angular: 5.0.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker
@angular/cdk: 5.0.0-rc0
@angular/cli: 1.6.0-beta.0
@angular/flex-layout: 2.0.0-beta.10-4905443
@angular/material: 5.0.0-rc0
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.0-beta.0
@schematics/angular: 0.1.2
typescript: 2.4.2
webpack: 3.8.1
Repro steps.
Generate new project and in node_modules/@angular/cli/models/webpack-configs/common.js
add { test: /.pug$/, use: ["apply-loader", "pug-loader"] }, to line 163 as the first rule. Then change your app.component.html to app.component.pug and start the server with --aot. Make a change to the pug file and look at the browser.
The log given by the failure.
none
Desired functionality.
Would like pug templates to recompile, currently it's impossible to develop properly with pug without this as I have to restart the build anytime I make changes!
Mention any other details that might be useful.
I would love to help out if I can just point me in the right direction. I've found that inside
node_modules/@angular/cli/models/webpack-configs/typescript.js in the getAotConfig function, adding {skipCodeGeneration: true} to the plugin options passed to _createAotPlugin causes the templates to get recompiled properly when changed.