1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- module.exports = {
-
- main: 'index.js',
-
- platform: ['mp-weixin', 'mp-qq', 'mp-baidu', 'mp-alipay', 'mp-toutiao', 'uni-app'],
-
- template: '',
-
- methods: {
- },
-
- style: '',
-
- import: [],
-
- usingComponents: {
- },
-
- handler (file, platform) {
- let content = file.contents.toString()
-
- if (platform === 'xxx') {
- content = content.replace('aaa', 'bbb')
- }
- file.contents = Buffer.from(content)
- }
- }
|