crabatool 1.0.829 → 1.0.831
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tool/compress.js +1 -0
package/package.json
CHANGED
package/tool/compress.js
CHANGED
|
@@ -314,6 +314,7 @@ function compressGspx(filePath) {
|
|
|
314
314
|
if (!fs.existsSync(filePath)) {
|
|
315
315
|
return '';
|
|
316
316
|
}
|
|
317
|
+
console.log('compress页面gspx:' + filePath);
|
|
317
318
|
const xmlMinifier = require('xml-minifier');
|
|
318
319
|
let xml = fs.readFileSync(filePath, 'utf8');
|
|
319
320
|
xml = removeXMLComments(xml); // 手动替换注释,xml-minifier的removeComments没有生效的
|