-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Fix error with filename + npm package. #1886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1) Webpack as default build to file main.js , not on bundle.js. 2) Add npm install webpack-cli -D to npm install, If you do not do this console throw next: ====================================================== The CLI moved into a separate package: webpack-cli. Please install 'webpack-cli' in addition to webpack itself to use the CLI. -> When using npm: npm install webpack-cli -D -> When using yarn: yarn add webpack-cli -D ====================================================== So pls fix this, thank`s.
npm package change is ok, thanks. Edit: Also moved the base branch to |
@@ -25,6 +25,7 @@ First let's create a directory, initialize npm, [install webpack locally](/guide | |||
``` bash | |||
mkdir webpack-demo && cd webpack-demo | |||
npm init -y | |||
npm install --save-dev webpack |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this line. We already show the installation for webpack
and webpack-cli
in the next line.
npm install webpack webpack-cli --save-dev
Thanks! |
* docs(guides) Fix error with filename + npm package. (#1886) 1) Webpack as default build to file main.js , not on bundle.js. 2) Add npm install webpack-cli -D to npm install, If you do not do this console throw next: ====================================================== The CLI moved into a separate package: webpack-cli. Please install 'webpack-cli' in addition to webpack itself to use the CLI. -> When using npm: npm install webpack-cli -D -> When using yarn: yarn add webpack-cli -D ====================================================== So pls fix this, thank`s. * docs(guides): Added info for v4 and webpack-cli (#1888) * docs(configuration) Update snippets to comply with webpack v4+ (#1905) * docs(configuration) Update snippets to comply with webpack v4+ * Expand mode for more info * fix(docs) Remove git conflict
======================================================
The CLI moved into a separate package: webpack-cli.
Please install 'webpack-cli' in addition to webpack itself to use the CLI.
-> When using npm: npm install webpack-cli -D
-> When using yarn: yarn add webpack-cli -D
======================================================
So pls fix this, thank`s.
describe your changes...