当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
spark算子-map vs mapPartitions算子
每日一题-正则表达式匹配-0715
【UiPath2022+C#】UiPath Switch
LeetCode刷题之第701题
【UiPath2022+C#】UiPath变量和参数
【UiPath2022+C#】UiPath 练习-数据操作
IJCAI 2022|Boundary-Guided Camouflage Object Detection Model BGNet
(C语言)动态内存管理
framebuffer应用编程及文字显示(1)
spark算子-parallelize算子
Autoware中安装Yolo3目标检测模块遇到的问题
ROS视频教程
每日一题-二分法
Unity中的GetEnumerator 方法及MoveNext、Reset方法
如何使用Houdini进行程序化优化?
Cocos Creator小游戏案例《棍子士兵》
spark算子-wholeTextFiles算子
(C语言)strlen、strcpy、strcat、strcmp、strstr函数的模拟实现
URP渲染管线实战教程系列 之URP渲染管线实战解密(一)
入门文档10 资源映射