Minimal webpack + VueJS single-file component
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# serve production at localhost:8080 with python 2
python -m SimpleHTTPServer 8080
# serve production at localhost:8080 with python 3
python -m http.server 8080
npm install -g vue-cli
vue init webpack-simple webpack-vue
cd webpack-vue
npm install
npm run dev
For detailed explanation on how things work, consult the docs for vue-loader.