![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
webpack
Handada_fan
一枚不断学习总结的程序猿
展开
-
Vue打包重命名js、css文件名以及目录
'use strict'const path = require('path')function getNowDate() { const date = new Date() const year = String(date.getFullYear()) const month = String(date.getMonth() + 1) const day = String(date.getDate()) return year + month + day}const nowDa原创 2022-04-21 14:31:50 · 4360 阅读 · 0 评论 -
webpack和Vue.config.js中配置url-loader
url-loader:一个用于将文件转换为 base64 URI 的 webpack 加载器。作用:项目打包时,可以将符合条件的图片打包成base64 URL,减少http资源请求。webpack配置:const {resolve} = require("path")module.exports = { mode:"development", entry:"./index.js", //resolve(__dirname,"src","index.js") output:{ p原创 2022-04-19 14:04:43 · 6002 阅读 · 0 评论