curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt-get install -y nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
yarn
- Copy the file
webpack.config.js.demo
and rename towebpack.config.js
- Change the options of
webpack.config.js
devServer:host
: option of webpack.config.js to change the listening address of devServerdevServer:proxy
: options to solve the problem of Cross-Origin while developing
npm run dev
- Use axios for XMLHttpRequests
- The VSCode editor is recommended (Vetur plugin)
npm run build