mirror of https://gitee.com/karson/fastadmin.git
优化gruntfile在Win下的兼容问题
parent
6ceb59b9f1
commit
4e48b3a736
|
|
@ -36,7 +36,7 @@ module.exports = function (grunt) {
|
||||||
var matches = content.match(pattern);
|
var matches = content.match(pattern);
|
||||||
if (matches) {
|
if (matches) {
|
||||||
if (type === 'js') {
|
if (type === 'js') {
|
||||||
var data = matches[1].replaceAll(/(urlArgs|baseUrl):(.*)\n/gi, '');
|
var data = matches[1].replace(/(urlArgs|baseUrl):[^\r\n]*[\r\n]*/gi, '');
|
||||||
const parse = require('parse-config-file'), fs = require('fs');
|
const parse = require('parse-config-file'), fs = require('fs');
|
||||||
require('jsonminify');
|
require('jsonminify');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue