文博
文博
## 背景 使用 vue-cli4 创建的项目,按照 https://github.com/airyland/vux/issues/3778 的指引,使用 `@vux/loader` 来配置 `theme`,结果发现程序运行起来,vux 相关组件并没有效果。 ## 问题定位 1. 按照 [vue-cli-3-example](https://github.com/airyland/vux/tree/v2/packages/vue-cli-3-example) 提供的例子,运行起来都是正常的 2. 自己创建的项目工程和此模板对比了下,发现 `@vue/cli-service` 、`@vue/cli-plugin-babel`、`@vue/cli-plugin-eslint` 的版本不一致,vue-cli4 创建的项目里,`@vue/cli-service` 版本是 `~4.5.0`,而 vue-cli3 是 `^3.5.0`。这个会影响 `@vux/loader` 针对...
Fixed an issue with the augment -memory-limit plug-in affecting the execution of vue-cli-services
1. 使用 `babel-plugin-transform-remove-console` - 安装命令:`yarn add babel-plugin-transform-remove-console --dev` - 修改 `babel.config.js` ```diff + const plugins = []; + if (process.env.NODE_ENV === 'production') { + plugins.push('transform-remove-console'); + } module.exports = {...
## 构建相关 ### 引入依赖 ```bash // imagemin imagemin-webp npm i imagemin imagemin-webp --save-dev or yarn add imagemin imagemin-webp --dev npm scripts 添加 towebp // package.json { ... "scripts": { "towebp":...