04 2022 档案

摘要:input[type="checkbox"] { width: 1.64rem; height: 1.64rem; display: inline-block; text-align: center; vertical-align: baseline; line-height: 1.64rem; p 阅读全文
posted @ 2022-04-28 12:10 lijun12138 阅读(292) 评论(0) 推荐(0) 编辑
摘要:1.安装插件 workbox-webpack-plugin 并引入webpack.config.js npm i workbox-webpack-plugin -D const WorkboxWebpackPlugin = require('workbox-webpack-plugin'); plu 阅读全文
posted @ 2022-04-19 15:13 lijun12138 阅读(65) 评论(0) 推荐(0) 编辑
摘要:安装依赖 npm install -D babel-loader @babel/core @babel/preset-env Loader 配置 webpack.config.js module: { rules: [ { test: /\.js$/, exclude: /node_modules/ 阅读全文
posted @ 2022-04-18 23:35 lijun12138 阅读(230) 评论(0) 推荐(0) 编辑
摘要:下载相关包 npm i eslint eslint-config-airbnb-base eslint-plugin-import -D 并在 package.json中配置添加 "eslintConfig": { "extends": "airbnb-base" } 在webpack中配置 esl 阅读全文
posted @ 2022-04-18 23:19 lijun12138 阅读(255) 评论(0) 推荐(0) 编辑
摘要:开启三个服务,nav,home,common 1:nav的webpack.config.js配置 const HtmlWebpackPlugin = require('html-webpack-plugin') const {ModuleFederationPlugin} = require('we 阅读全文
posted @ 2022-04-13 20:23 lijun12138 阅读(86) 评论(0) 推荐(0) 编辑
摘要:1:安装相关插件 npm i css-loader style-loader postcss-loader autoprefixer postcss-nested -D 2:webpack.config.js配置 { test:/\.css$/, use:[ 'style-loader', { lo 阅读全文
posted @ 2022-04-12 22:46 lijun12138 阅读(223) 评论(0) 推荐(0) 编辑
摘要:出现该问题是没有安装vue-template-compiler,安装之后就可以了, 对于版本问题需要注意 阅读全文
posted @ 2022-04-09 15:36 lijun12138 阅读(495) 评论(0) 推荐(0) 编辑
摘要:'rules': {'import/newline-after-import': 'off','no-param-reassign': 'off','space-before-function-paren': 'off','object-curly-spacing': 'off','block-sp 阅读全文
posted @ 2022-04-09 15:14 lijun12138 阅读(287) 评论(0) 推荐(0) 编辑
摘要:配置是这样的 getFormmatter一直找也没有找到,最后通过降低eslint版本再webpack成功编译 阅读全文
posted @ 2022-04-09 15:10 lijun12138 阅读(757) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示