Skip to content

Commit 469b881

Browse files
committed
refactor(server): removed this.profile
1 parent c1653cc commit 469b881

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/Server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ class Server {
9191
// TODO this.<property> is deprecated (remove them in next major release.) in favor this.options.<property>
9292
this.hot = this.options.hot || this.options.hotOnly;
9393
this.headers = this.options.headers;
94-
this.profile = !!this.options.profile;
9594
this.progress = this.options.progress;
9695

9796
this.serveIndex = this.options.serveIndex;
@@ -149,7 +148,7 @@ class Server {
149148

150149
setupProgressPlugin() {
151150
new webpack.ProgressPlugin({
152-
profile: this.profile,
151+
profile: !!this.options.profile,
153152
}).apply(this.compiler);
154153

155154
const progressPlugin = new webpack.ProgressPlugin(

test/temp/main.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
background-color: rgb(255, 0, 0);
3+
}

0 commit comments

Comments
 (0)