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
阅读全文
摘要:1.安装插件 workbox-webpack-plugin 并引入webpack.config.js npm i workbox-webpack-plugin -D const WorkboxWebpackPlugin = require('workbox-webpack-plugin'); plu
阅读全文
摘要:安装依赖 npm install -D babel-loader @babel/core @babel/preset-env Loader 配置 webpack.config.js module: { rules: [ { test: /\.js$/, exclude: /node_modules/
阅读全文
摘要:下载相关包 npm i eslint eslint-config-airbnb-base eslint-plugin-import -D 并在 package.json中配置添加 "eslintConfig": { "extends": "airbnb-base" } 在webpack中配置 esl
阅读全文
摘要:开启三个服务,nav,home,common 1:nav的webpack.config.js配置 const HtmlWebpackPlugin = require('html-webpack-plugin') const {ModuleFederationPlugin} = require('we
阅读全文
摘要:1:安装相关插件 npm i css-loader style-loader postcss-loader autoprefixer postcss-nested -D 2:webpack.config.js配置 { test:/\.css$/, use:[ 'style-loader', { lo
阅读全文
摘要:出现该问题是没有安装vue-template-compiler,安装之后就可以了, 对于版本问题需要注意
阅读全文
摘要:'rules': {'import/newline-after-import': 'off','no-param-reassign': 'off','space-before-function-paren': 'off','object-curly-spacing': 'off','block-sp
阅读全文
摘要:配置是这样的 getFormmatter一直找也没有找到,最后通过降低eslint版本再webpack成功编译
阅读全文