A Vue.js project
# 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
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'src': resolve('src'),
'common': resolve('src/common')
}
},
npm install babel-runtime --save
cnpm install fastclick --save
cnpm install babel-polyfill --save-dev
https://m.y.qq.com/ https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg
动态创建script标签,没有同源限制,可以跨域,script src指向服务端地址
cnpm install jsonp --save
cnpm install axios --save
cnpm install better-scroll@^0.1.15 --save
cnpm install axios --save
/config/index.js
host: '0.0.0.0',
/build/webpack.dev.conf.js
cnpm install vue-lazyload --save