edp icon indicating copy to clipboard operation
edp copied to clipboard

[WebServer][Stylus]feature request

Open jinzhubaofu opened this issue 11 years ago • 6 comments

支持--resolve-url 支持--import 支持--paths

目前这些参数都被抹去,没有带入stylus。

jinzhubaofu avatar Jun 01 '14 06:06 jinzhubaofu

@PengXing

leeight avatar Jun 03 '14 01:06 leeight

现在是可以支持这些参数的,类似这样:

autocss({
  stylus: {
    use: function (style) {
      style.set('resolve url', true);
      style.include(yourStylPath);
      style.import('rider');
    }
  }
})

firede avatar Jun 12 '14 10:06 firede

这个resolve url直接这么用是不行的,需要这样干:

style.define('url', stylus.resolver());

我试了一早上才从grunt-contrib-stylus的源码里找到这个配置……

jinzhubaofu avatar Jun 13 '14 13:06 jinzhubaofu

@firede @jinzhubaofu 我发布了edp-webserver的版本,楼上的看看是否满足需求了

leeight avatar Jun 16 '14 09:06 leeight

貌似有人说还有问题,先打开看看

leeight avatar Oct 30 '14 10:10 leeight

image

leeight avatar Oct 30 '14 10:10 leeight