Skip to content

Commit

Permalink
refactor(server): removed this.profile
Browse files Browse the repository at this point in the history
  • Loading branch information
knagaitsev committed Jun 8, 2019
1 parent c10ea04 commit 3cdf809
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ class Server {
// TODO this.<property> is deprecated (remove them in next major release.) in favor this.options.<property>
this.hot = this.options.hot || this.options.hotOnly;
this.headers = this.options.headers;
this.profile = !!this.options.profile;
this.progress = this.options.progress;

this.serveIndex = this.options.serveIndex;
Expand Down Expand Up @@ -146,7 +145,7 @@ class Server {

setupProgressPlugin() {
new webpack.ProgressPlugin({
profile: this.profile,
profile: !!this.options.profile,
}).apply(this.compiler);

const progressPlugin = new webpack.ProgressPlugin(
Expand Down
3 changes: 3 additions & 0 deletions test/temp/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
background-color: rgb(255, 0, 0);
}

0 comments on commit 3cdf809

Please sign in to comment.