Skip to content

Commit

Permalink
Add webpack-dev-server from 2.x branch (#1339)
Browse files Browse the repository at this point in the history
webpack-dev-server 3.x supports webpack 4.x _only_
⤷ https://github.com/webpack/webpack-dev-server/releases/tag/v3.0.0
  • Loading branch information
hansondr authored and gauravtiwari committed Mar 12, 2018
1 parent 1f2d0f8 commit b4d2d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
run "yarn add @rails/webpacker"

say "Installing dev server for live reloading"
run "yarn add --dev webpack-dev-server"
run "yarn add --dev webpack-dev-server@2.11.2"

if Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR > 1
say "You need to allow webpack-dev-server host as allowed origin for connect-src.", :yellow
Expand Down

0 comments on commit b4d2d89

Please sign in to comment.