Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit 5f18da0

Browse files
author
Plum-Crazy
committed
Removing usage of pugjs
1 parent ec1343f commit 5f18da0

File tree

9 files changed

+10
-17
lines changed

9 files changed

+10
-17
lines changed

config/build/webpack.common.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ module.exports = {
2525
test: /\.html$/,
2626
use: 'html-loader'
2727
},
28-
{
29-
test: /\.pug$/,
30-
use: [ 'raw-loader', 'pug-html-loader' ]
31-
},
3228
{
3329
test: /\.scss$/,
3430
exclude: /node_modules/,

config/test/webpack.test.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ module.exports = {
1919
test: /\.html$/,
2020
use: 'html-loader'
2121
},
22-
{
23-
test: /\.pug$/,
24-
use: [ 'raw-loader', 'pug-html-loader' ]
25-
},
2622
{
2723
test: /\.scss$/,
2824
exclude: /node_modules/,

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@
5353
"loader-utils": "^1.1.0",
5454
"node-sass": "^4.5.3",
5555
"protractor": "~5.1.2",
56-
"pug": "^2.0.0-beta12",
57-
"pug-html-loader": "^1.1.4",
5856
"raw-loader": "^0.5.1",
5957
"reflect-metadata": "^0.1.10",
6058
"sass-loader": "^6.0.6",

src/app/app.component.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="tyn-app">
2+
<main>
3+
<router-outlet></router-outlet>
4+
</main>
5+
</div>

src/app/app.component.pug

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Component, OnInit, ViewEncapsulation } from "@angular/core";
22

33
@Component({
44
selector: "tyn-app",
5-
template: require("./app.component.pug"),
5+
templateUrl: './app.component.html',
66
styleUrls: [ "./app.component.scss" ],
77
encapsulation: ViewEncapsulation.None
88
})
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="tyn-home">
2+
<p>Hello World!</p>
3+
</div>

src/app/route/home/home.component.pug

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/app/route/home/home.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Component } from "@angular/core";
22

33
@Component({
44
selector: "tyn-home",
5-
template: require("./home.component.pug"),
5+
templateUrl: './home.component.html',
66
styleUrls: [ "./home.component.scss" ]
77
})
88
export class HomeComponent {

0 commit comments

Comments
 (0)