随笔分类 -  Vue.js

摘要:1 onInput(value) { 2 // if (this.type == 'payPwd' && this.payPwd.length < 6) { 3 // this.payPwd = this.payPwd + value; 4 // } else if (this.type == 'c 阅读全文
posted @ 2020-12-30 16:32 思猿客 阅读(559) 评论(0) 推荐(0)
摘要:1 // 此文件是生产环境下webpack相关配置 2 'use strict' 3 const path = require('path') 4 const utils = require('./utils') 5 const webpack = require('webpack') 6 cons 阅读全文
posted @ 2020-12-02 17:08 思猿客 阅读(1012) 评论(0) 推荐(0)
摘要:1 // 此文件是生产环境下webpack相关配置 2 'use strict' 3 const path = require('path') 4 const utils = require('./utils') 5 const webpack = require('webpack') 6 cons 阅读全文
posted @ 2020-12-02 16:41 思猿客 阅读(131) 评论(0) 推荐(0)
摘要:1 //此文件是检查node+npm的版本 在build.js里面使用 2 'use strict' 3 const chalk = require('chalk') //导入chalk模块 用来改变字体颜色 4 const semver = require('semver') //导入semver 阅读全文
posted @ 2020-12-02 16:38 思猿客 阅读(400) 评论(0) 推荐(0)
摘要:1 // 此文件是生产环境下webpack相关配置 2 'use strict' 3 const path = require('path') 4 const utils = require('./utils') 5 const webpack = require('webpack') 6 cons 阅读全文
posted @ 2020-12-02 16:37 思猿客 阅读(298) 评论(0) 推荐(0)
摘要:1 const fs = require('fs') 2 const path = require('path') 3 const webpack = require('webpack') 4 const UglifyJsPlugin = require('uglifyjs-webpack-plug 阅读全文
posted @ 2020-12-02 16:36 思猿客 阅读(520) 评论(0) 推荐(0)
摘要:1 //此文件是开发环境下webpack相关配置 2 'use strict' 3 const utils = require('./utils') 4 const webpack = require('webpack') 5 const config = require('../config') 阅读全文
posted @ 2020-12-02 16:35 思猿客 阅读(2136) 评论(0) 推荐(0)
摘要:1 // webpack.base.conf.js 基础配置 2 'use strict' 3 const path = require('path') // path模块是路径设置 4 const webpack = require('webpack') 5 const utils = requi 阅读全文
posted @ 2020-12-02 16:34 思猿客 阅读(2027) 评论(0) 推荐(0)
摘要:1 //处理.vue文件的配置文件 2 'use strict' 3 const utils = require('./utils') 4 const config = require('../config') 5 const path = require('path') 6 const isPro 阅读全文
posted @ 2020-12-02 16:33 思猿客 阅读(692) 评论(0) 推荐(0)
摘要:1 //此文件用来配置 assetsPath css-loader 和 vue-style-loader createNotifierCallback 2 'use strict' 3 const path = require('path') 4 const config = require('.. 阅读全文
posted @ 2020-12-02 16:32 思猿客 阅读(1020) 评论(0) 推荐(0)
摘要:1 // bulid.js是webpack的打包文件,通过配置package.json中的script来执行脚本。命令号npm run build即运行node build/build.js 2 'use strict' 3 require('./check-versions')() // 检查no 阅读全文
posted @ 2020-12-02 16:31 思猿客 阅读(1338) 评论(0) 推荐(0)
摘要:1 'use strict' 2 module.exports = { 3 NODE_ENV: '"production"', 4 API_HOST:'"http://www.code-js.com:7001"', //线上环境 5 VERSION_CONTROL: false // yarn bu 阅读全文
posted @ 2020-12-02 16:29 思猿客 阅读(877) 评论(0) 推荐(0)
摘要:1 'use strict' 2 const merge = require('webpack-merge') 3 const prodEnv = require('./prod.env') 4 5 //合并两个配置文件对象并生成一个新的配置文件,如果合并的过程中遇到冲突的属性,第二个参数的属性会覆 阅读全文
posted @ 2020-12-02 16:28 思猿客 阅读(1560) 评论(0) 推荐(0)
摘要:1 //此文件是用来配置各个环境参数 2 3 'use strict' 4 // Template version: 1.3.1 5 // see http://vuejs-templates.github.io/webpack for documentation. 6 7 const path = 阅读全文
posted @ 2020-12-02 16:27 思猿客 阅读(795) 评论(0) 推荐(0)
摘要:1 const path = require('path'); 2 module.exports = { 3 // 基本路径 4 publicPath: process.env.NODE_ENV 'production' ? '' : './', 5 // 输出文件目录 6 outputDir: p 阅读全文
posted @ 2020-10-10 09:54 思猿客 阅读(415) 评论(0) 推荐(0)
摘要:一、传送门:官方文档、大神文档 二、单独使用 print-js 1、封装 print 1 print(ref, title, style, type, jsonData, borderHeadStyle, gridStyle, css) { 2 printJS({ 3 printable: ref, 阅读全文
posted @ 2020-09-03 16:40 思猿客 阅读(18444) 评论(4) 推荐(1)
摘要:一、vue-cli 4.0 中打包后,页面空白,路径错误。 二、vue2修改浏览器显示title。 三、路径中 '@/' 代表什么路径和 './' 有什么区别。 '@/' 具体代表什么路径,要看你webpack里面对于 @ 是如何配置的,可以在build文件夹下webpack.base.conf.j 阅读全文
posted @ 2020-03-03 17:43 思猿客 阅读(251) 评论(0) 推荐(0)
摘要:一、遇见vue.js 1.1 Vue.js是什么? Vue.js 是一套用于构建用户界面的渐进式框架,Vue 的核心库只关注视图层,不仅易于上手,还便于与第三方库或既有项目整合。Vue.js通过简单的API提供高效的数据绑定和灵活的组件系统。 1.2 MVC 和 MVVM MVC是应用最广泛的软件架 阅读全文
posted @ 2019-09-05 10:23 思猿客 阅读(361) 评论(0) 推荐(1)