当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
腾讯云消息队列CMQ
函数在开发环境中的应用(简易实例)
你要找的cocos面试答案都在这里了!
spark算子-wholeTextFiles算子
每日一题-合并K个升序链表-0722
亲身实感十多年的面试官面试的题目
UE4动画雨滴材质制作教程
C语言的一些小常识
论那些给得出高薪的游戏公司底气到底在哪里?
每日一题-单调栈
Cocos Creator开发中的事件响应
每日一题-括号生成-0721
SSL证书提示过期或者无效,该怎么处理呢?
spark算子-coalesce算子
来来来,一文让你读懂Cocos Creator如何读写JSON文件
“元宇宙”是个啥?都有哪些大招?
UiPath简介
LeetCode刷题之第86题
UE4美术你有必要了解的数学基础
栈区中越界可能造成的死循环可能









