# vue-imgview > a plugin to look at image,used like totast ,very simple ## Build Setup ``` bash # install dependencies npm install # serve with hot reload at localhost:8080 运行代码之前,把webpack.config.js 中的 entry 设为'./src/main.js' npm run dev # build for production with minification 打包成插件之前 把webpack.config.js 中的 entry 设为 './src/lib/index.js' npm run build ``` For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).