@dcasia/mini-program-tailwind-webpack-plugin
Advanced tools
Comparing version 1.1.0 to 1.1.1
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var postcss = require('postcss'); | ||
@@ -63,8 +61,2 @@ var wxml = require('@vivaxy/wxml'); | ||
var regExp = new RegExp("".concat(backslasheMap[type]).concat(from), 'g'); | ||
/** | ||
* Todo | ||
* To enhance the precision for hanlding different cases we need to do some special detections | ||
* E.g. We need to only match the ':' character in the case 'mobile:h-12' instead of the case '{{a ? b : c}}' | ||
* To do this we need to make sure the replacement will only happen inside quotes rather than curly braces | ||
*/ | ||
content = content.replace(regExp, to); | ||
@@ -169,2 +161,2 @@ } | ||
exports.MiniProgramTailwindWebpackPlugin = MiniProgramTailwindWebpackPlugin; | ||
module.exports = MiniProgramTailwindWebpackPlugin; |
{ | ||
"name": "@dcasia/mini-program-tailwind-webpack-plugin", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
9659
149