$ rails -v
Rails 5.2.0.beta2
$ rails new r1 --webpack --skip-git --skip-sprockets --skip-coffee --skip-javascript --skip-turbolinks --skip-test --skip-system-test
$ cd r1
$ bin/webpack-dev-server
webpack-dev-server 2.10.0
webpack 3.10.0
Usage: https://webpack.js.org/configuration/dev-server/
Config options:
--config Path to the config file
[å—符串] [默认值: webpack.config.js or webpackfile.js]
--config-name Name of the config to use [å—符串]
--env Environment passed to the config, when it is a function
It looks like the latest version of [email protected] introduced a bug (see https://github.com/webpack/webpack-dev-server/issues/1259), for a quick fix try installing [email protected], eg (if you use yarn).
yarn add -D [email protected]
@sjchmiela exactly
It seems [email protected] solves this bug! Not sure. But it works for me.
Most helpful comment
It looks like the latest version of
[email protected]introduced a bug (see https://github.com/webpack/webpack-dev-server/issues/1259), for a quick fix try installing[email protected], eg (if you use yarn).