mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-03-12 11:52:26 +08:00
init
This commit is contained in:
16
node_modules/@dcloudio/uni-mp-weixin/lib/independent-plugins/utils.js
generated
vendored
Normal file
16
node_modules/@dcloudio/uni-mp-weixin/lib/independent-plugins/utils.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
const isWin = /^win/.test(process.platform);
|
||||
const normalizePath = path => (isWin ? path.replace(/\\/g, '/') : path);
|
||||
|
||||
module.exports = {
|
||||
normalizePath,
|
||||
generateAsset (stringSource) {
|
||||
return {
|
||||
size () {
|
||||
return Buffer.byteLength(stringSource, 'utf8');
|
||||
},
|
||||
source () {
|
||||
return stringSource;
|
||||
},
|
||||
};
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user