# VueWeChat **Repository Path**: nicefree/VueWeChat ## Basic Information - **Project Name**: VueWeChat - **Description**: No description available - **Primary Language**: 微信 - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-02 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vuewechat npm install npm run serve npm run build # vue打包优化: https://blog.csdn.net/zhenghao35791/article/details/93649587 # vue-cli2使用cdn资源 https://www.cnblogs.com/ysla/p/12057532.html # eslint 如何忽略文件 vue-cli搭建的项目,想要引入三方js库,结果不符合eslint规范 在需要过滤的文件头部末尾分别添加:/* eslint-disable */,/* eslint-disable no-new */ 参考 src/assets/js/flexible.js # 移动端适配 npm install px2rem-loader --save-dev npm install amfe-flexible --save // 引入了就无需引入 npm install postcss-px2rem --save-dev main.js import 'amfe-flexible'或者其他方式 在vue.config.js中进行配置 module.exports = { css: { loaderOptions: { postcss: { plugins: [ require('postcss-px2rem')({remUnit: 37.5}), ] } } }, } # 浏览器前缀css兼容 postcss: { plugins: [ require('autoprefixer')({ // browsers: ['last 2 versions'] overrideBrowserslist: ['last 10 Chrome versions', 'last 5 Firefox versions', 'Safari >= 6', 'ie > 8'] }) ] } # Vue微信公众号兼容微信JS-SDK,使用分享等功能 https://segmentfault.com/a/1190000019342737?utm_medium=referral&utm_source=tuicool # natapp映射 本地端口要跟natapp一致 https://natapp.cn/ https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck # 其他博客文章 https://me.csdn.net/qq_31403519 # 登陆授权流程 https://www.processon.com/view/link/5e885f06e4b03bfcd07eedb9 # Preload,Prefetch 和它们在 Chrome 之中的优先级 https://www.w3cplus.com/performance/reloading/preload-prefetch-and-priorities-in-chrome.html # 使用Flexible实现手淘H5页面的终端适配 https://github.com/amfe/article/issues/17 https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx39f60c30464b0e67&redirect_uri=http://5hns94.natappfree.cc/#/articleDetail/3423/uid/34r23&response_type=code&scope=snsapi_base&state=1#wechat_redirect https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx39f60c30464b0e67&redirect_uri=http%3A%2F%2Fwwvkz6.natappfree.cc%2F%23%2FarticleDetail%2F3423%2Fuid%2F34r23&response_type=code&scope=snsapi_base&state=1#wechat_redirect http://5hns94.natappfree.cc/?code=011rZeIB17l1Ba0OHWJB1vcpIB1rZeIs&state=1#/articleDetail/3423/uid/34r23 http://4s988a.natappfree.cc https://blog.csdn.net/zgh0711/article/details/89227260 https://hxkj.vip/#/article?article_id=8 https://hxkj.vip/?from=singlemessage&isappinstalled=0 http://demo26.crmeb.net/detail/11?spread=21450 http://idutbx.natappfree.cc/?&code=001NHhPm16UJYm0vX8Pm15X0Pm1NHhPM&state=lg#/articleDetail/3423/uid/34r23?a=11