angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Jade support in webpack releases

Open ShadowManu opened this issue 10 years ago • 43 comments

Sorry for not providing template information but I only have my phone available (and there's no critical info either).

Is there some in-the-works support for jade? The related issues/PR 's were closed but no real solution was provided. What can be done to have support for this?

ShadowManu avatar Aug 30 '16 04:08 ShadowManu

@MarkPieszak thank you. I used pug-html-loader and html-loader instead, it is working fine, including the include ./pug-file

const pug_rule = `\n{ test: /.pug$/, loader: [ 'html-loader', { loader: "pug-html-loader", options: { doctype: 'html', pretty: true } } ], },`;

chenzhiguang avatar Nov 29 '17 06:11 chenzhiguang

@MarkPieszak @clovisj @chenzhiguang [Warning] this trick works fine, as long as you do not name your template files something.TS.pug (which I used to do so they pop below their .ts counterpart in vscode)

If you do so, your AOT builds will fail silently (at least on my machine, as of today)

This one was f***ng hard to find. see #8904

oguimbal avatar Dec 16 '17 15:12 oguimbal

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.