摘要:一:nginx服务器解决方案,修改 .conf 配置文件 有两种解决方案 1: location / { try_files $uri $uri/ @router; index index.html; } location @router { rewrite ^.*$ /index.html las
阅读全文
09 2020 档案
摘要:提取第三方库,缓存,减少打包体积 1、 dll动态链接库, 使用DllPlugin DllReferencePlugin,将第三方库提取出来另外打包出来,然后动态引入html。可以提高打包速度和缓存第三方库这种方式打包可以见京东团队的gaea方案https://www.npmjs.com/packa
阅读全文
摘要:webpack第三方包的安装和用法 1.husky的安装和用法用途:不符合eslint的规范,不能推送到git上安装:npm install husky -D用法:"precommit": npm run lint-fix 2.vue-server-renderer的安装和用法用途:服务端渲染必须使
阅读全文
摘要:vue-loader.config.js module.exports = (isDev) =>{ return { preserveWhitepace: true, // 删除vue文件的行尾空格 cssModules: { localIdentName: '[path]-[name]-[hash
阅读全文
摘要:1.处理js语法及校验 @babel/core(核心包) @babel/preset-env转化高级语法) @babel/plugin-proposal-decoreators(转化es7语法) @babel/plugin-proposal-class-properties(处理class的语法)
阅读全文
摘要:ERROR in ./src/main.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: E:\webs\test\src\main.js: Cannot read property
阅读全文
摘要:Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ReferenceError: document is not defined at insertStyleElement (E:\we
阅读全文

浙公网安备 33010602011771号