当前位置:网站首页>Getting Started Documentation 10 Resource Mapping
Getting Started Documentation 10 Resource Mapping
2022-08-05 06:08:00 【dongsdh】
Generate resource mapping .map without plugins
const { src, dest, series, watch, parallel } = require("gulp");const uglify = require('gulp-uglify');function clean(cb) {console.log('cleanup');cb()}function js(cb) {console.log('processing js');src('./src/js/b.js',{ sourcemaps: true }).pipe(uglify()).pipe(dest('./dist',{ sourcemaps: '.' }))cb();}function css(cb) {console.log('processing css');cb();}function img(cb) {console.log('processing img');cb();}function build(cb) {console.log('Packaging');cb();}const Run = series(clean, js, img, css, build)exports.default = Run;
The sourcemaps plugin is not downloaded
Although the operation of compressing the code is performed
But resource mapping is configured
You can still view the source code
Easy to use in the development environment
边栏推荐
猜你喜欢
随机推荐
UE4美术你有必要了解的数学基础
什么?CDN缓存加速只适用于加速静态内容?
每日一题-寻找两个正序数组的中位数-0713
【3D模型教程】ZBrush如何表现皮肤纹理?
spark源码-任务提交流程之-1-sparkSubmit
小度 小度 在呢!
framebuffer应用编程及文字显示(1)
【Day6】文件系统权限管理 文件特殊权限 隐藏属性
将一句话的单词进行倒置(C语言纯代码)
Unity常用模块设计 : Unity游戏排行榜的制作与优化
亲身实感十多年的面试官面试的题目
每日一题-最长有效括号-0724
I217-V在openwrt软路由下大流量断网问题
C语言入门笔记 —— 初识
PVE 直通硬盘到TrueNAS
C语言—三子棋的实现
最简单的防抖节流理解法
新一代解析技术——云解析
入门文档09 独立的watch
IJCAI 2022|Boundary-Guided Camouflage Object Detection Model BGNet









