還是要裝webpack-cli嗎
視頻中并沒有安裝webpack-cli,老師也說不要自己配么?為什么我還報錯,一定要讓我裝webpack-cli呢
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
?- webpack-cli (https://github.com/webpack/webpack-cli)
? ?The original webpack full-featured CLI.
?- webpack-command (https://github.com/webpack-contrib/webpack-command)
? ?A lightweight, opinionated webpack CLI.
We will use "npm" to install the CLI via "npm install -D".
Which one do you like to install (webpack-cli/webpack-command):
2018-07-25
webpack 4 需要安裝webpack-cli
2018-11-04
安裝后還報錯。
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in ./src/app.vue 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
> <template>
|? ? ?<div id="text">{{text}}</div>
| </template>
?@ ./src/index.js 2:0-27 8:19-22