weapp-plugin-replace
替换文件文本
安装
npm i weapp-plugin-replace -D
使用
weapp.config.js
moduleexports = plugins: 'weapp-plugin-replace' match: /\.wxss$/ config: find: /px/ { return count + 'rpx' } , ;
moduleexports = plugins: 'weapp-plugin-replace' config: find: '1' replace: '11' find: '2' replace: '22' , ;