unpathify:压缩 browserify 需要路径以更好地缩小即 require('somelongpath') => require(1)

时间:2024-07-31 07:47:16
【文件属性】:

文件名称:unpathify:压缩 browserify 需要路径以更好地缩小即 require('somelongpath') => require(1)

文件大小:5KB

文件格式:ZIP

更新时间:2024-07-31 07:47:16

JavaScript

已弃用,支持 从 unpathify 迁移到 bundle-collapser $ npm install bundle-collapser --save-dev 咕噜声 Gruntfile.js var collapse = require ( 'bundle-collapser/plugin' ) ; module . exports = function ( grunt ) { grunt . initConfig ( { browserify : { dev : { files : { 'bundle.js' : [ 'main.js' ] } , options : { plugin : [ collapse ] } } } } ) ; grunt . l


【文件预览】:
unpathify-master
----bin()
--------unpathify(120B)
----package.json(934B)
----tasks()
--------unpathify.js(450B)
----LICENSE(1KB)
----main.js(2KB)
----.gitignore(13B)
----README.md(2KB)

网友评论