Skip to content

Commit

Permalink
v2.2.1; another native replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
Va1 committed Mar 17, 2018
1 parent e73d055 commit 96cbae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/BrowserSyncPlugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const { extend } = require('lodash')
const browserSync = require('browser-sync')
const getCssOnlyEmittedAssetsNames = require('./getCssOnlyEmittedAssetsNames')

Expand All @@ -11,8 +10,8 @@ const defaultPluginOptions = {

class BrowserSyncPlugin {
constructor (browserSyncOptions, pluginOptions) {
this.browserSyncOptions = extend({}, browserSyncOptions)
this.options = extend({}, defaultPluginOptions, pluginOptions)
this.browserSyncOptions = Object.assign({}, browserSyncOptions)
this.options = Object.assign({}, defaultPluginOptions, pluginOptions)

this.browserSync = browserSync.create(this.options.name)
this.isWebpackWatching = false
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browser-sync-webpack-plugin",
"version": "2.2.0",
"version": "2.2.1",
"description": "BrowserSync and Webpack integration",
"keywords": [
"webpack",
Expand Down

0 comments on commit 96cbae6

Please sign in to comment.