代码拉取完成,页面将自动刷新
huangliusong@
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test
npm install stylus --save
然后
npm install stylus stylus-loader --save
或者
npm install stylus
npm install stylus-loader
npm install fastclick -S
之后,在main.js中引入,并绑定到body
import FastClick from 'fastclick'
FastClick.attach(document.body);
npm install vue-awesome-swiper --save
"scripts": {
"dev": "webpack-dev-server --host 0.0.0.0 --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"unit": "jest --config test/unit/jest.conf.js --coverage",
"e2e": "node test/e2e/runner.js",
"test": "npm run unit && npm run e2e",
"lint": "eslint --ext .js,.vue src test/unit test/e2e/specs",
"build": "node build/build.js"
},
http://api.map.baidu.com/location/ip?ak=HlC73DdZNi2UgVNdW7H0ciaatWUHgxPL&ip=222.216.128.162&coor=bd09ll
This dependency was not found:
* !!vue-style-loader!css-loader?{"minimize":false,"sourceMap":false}!../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-1d57e5ea","scoped":false,"hasInlineConfig":false}!stylus-loader?{"sourceMap":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./a.vue in ./src/components/a.vue
To install it, you can run: npm install --save !!vue-style-loader!css-loader?{"minimize":false,"sourceMap":false}!../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-1d57e5ea","scoped":false,"hasInlineConfig":false}!stylus-loader?{"sourceMap":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./a.vu
npm install stylus-loader css-loader style-loader --save-dev
npm install sass-loader --save
npm install node-sass --save
然后运行npm run start就可以
在项目的根目录的package.json文件中
"dev": "webpack-dev-server --content-base ./
--open --inline --hot--compress --history-api-fallback --config build/webpack.dev.config.js"
的
后面添加
--host 192.168.1.5(填你自己的ip地址)。
这样就能通过ip访问了,但是通过服务器域名访问时还是显示
Invalid Host header,
这是由于新版的webpack-dev-server出于安全考虑,
默认检查hostname,如果hostname
不是配置内的,将中断访问。
可以在build目录中的
webpack.base.config.js
中添加如下
webpack-dev-server
配置:
devServer: {
disableHostCheck: true,
},
git pull 无法拉去项目
https://github.com/think2011/localResizeIMG/wiki/1.-%E5%90%8E%E7%AB%AF%E5%A4%84%E7%90%86
ocalResizeIMG在调用时,就可以指定压缩后图片的宽度高度以及质量(详细参考文档),至于要怎么把数据提交到后台,可以参考该库的wiki中提到的方案,一切都很简单。
https://github.com/think2011/localResizeIMG/wiki/1.-%E5%90%8E%E7%AB%AF%E5%A4%84%E7%90%86
npm install axios --save
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。