Skip to content

Commit 593347e

Browse files
authored
Merge pull request jbaysolutions#152 from ittus/fix-hot-reloading
Add webpack HotModuleReplacementPlugin explicitly
2 parents b4b7bbe + a0a3407 commit 593347e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"main": "dist/vue-grid-layout.min.js",
1616
"scripts": {
17-
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --inline --hot",
17+
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --inline",
1818
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
1919
"dist": "webpack --progress --hide-modules --config webpack.build.js && cross-env NODE_ENV=production webpack --progress --hide-modules --config webpack.build.min.js"
2020
},

webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
var path = require('path')
22
var webpack = require('webpack')
33

4-
54
module.exports = {
65
entry: './src/main.js',
76
output: {
@@ -54,7 +53,10 @@ module.exports = {
5453
performance: {
5554
hints: false
5655
},
57-
devtool: '#eval-source-map'
56+
devtool: '#eval-source-map',
57+
plugins: [
58+
new webpack.HotModuleReplacementPlugin()
59+
]
5860
}
5961

6062

0 commit comments

Comments
 (0)