随笔分类 -  Vue CLI

摘要:chainWebpack: config => { config.module.rules.delete('svg') // 删除默认svg配置 config.module .rule('svg-sprite-loader') .test(/\.svg$/) .include .add(path.r 阅读全文
posted @ 2021-04-12 17:15 隔壁的小明 阅读(241) 评论(0) 推荐(0)
摘要:1、执行 vue add style-resources-loader 命令,选择less 2、在 vue.config.js中添加配置,注意将路径更改为自己存放less变量文件的地址 // 全局使用less变量 pluginOptions: { 'style-resources-loader': 阅读全文
posted @ 2020-09-19 14:03 隔壁的小明 阅读(804) 评论(0) 推荐(0)
摘要:装包:npm install jquery --save 方式一 全局使用 1)main.js中引入 // jquery import $ from 'jquery' Vue.prototype.$ = $; 2)更改vue.config.js const webpack = require('we 阅读全文
posted @ 2020-07-03 18:09 隔壁的小明 阅读(3530) 评论(0) 推荐(0)
摘要:无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\vue.ps1,因为在此系统中禁止执行脚本。有关详细信息,请参阅 "get-help about_signing"。 以管理员身份运行PowerShell1. 执行:get-ExecutionPoli 阅读全文
posted @ 2020-04-23 16:42 隔壁的小明 阅读(2012) 评论(0) 推荐(0)
摘要:eslint官网:https://eslint.bootcss.com/docs/user-guide/getting-started eslint配置:http://eslint.cn/docs/rules/ 参考文章:https://blog.csdn.net/qq_23876873/artic 阅读全文
posted @ 2020-03-18 16:45 隔壁的小明 阅读(2367) 评论(0) 推荐(0)