Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 嵌套类的Grunt uncss任务_Angularjs_Gruntjs_Uncss - Fatal编程技术网

Angularjs 嵌套类的Grunt uncss任务

Angularjs 嵌套类的Grunt uncss任务,angularjs,gruntjs,uncss,Angularjs,Gruntjs,Uncss,我正在将grunt uncss与我的AngularJs应用程序一起使用,我想知道是否可以在要忽略的选项中指定嵌套类 例如,使用角度动画时,我的css输出如下: .button.ng-enter {...} options: { ignore: ['.button.ng-enter'] }, 在选项中,我必须这样指定: .button.ng-enter {...} options: { ignore: ['.button.ng-enter'] }, 如果我只有几个就可以了。

我正在将
grunt uncss
与我的
AngularJs
应用程序一起使用,我想知道是否可以在要忽略的选项中指定嵌套类

例如,使用角度动画时,我的css输出如下:

.button.ng-enter {...}
options: {
    ignore: ['.button.ng-enter']
},
在选项中,我必须这样指定:

.button.ng-enter {...}
options: {
    ignore: ['.button.ng-enter']
},
如果我只有几个就可以了。。但在大型应用程序中,我必须为所有用例明确指定它

是否有一种方法可以只声明
.ng enter
并为所有用例处理它,即使在与其他类嵌套时也是如此