fex-team / fis3-postpackager-loader

静态资源前端加载器
BSD 2-Clause "Simplified" License
82 stars 38 forks source link

1.3.8版本 allInOne:true 没有按页面打包 #34

Closed fancyboynet closed 8 years ago

fancyboynet commented 8 years ago

1.1.0是正常的

2betop commented 8 years ago

具体点?

fancyboynet commented 8 years ago

@2betop fis-config.js:

fis.match('::package', {
  postpackager: fis.plugin('loader', {
    allInOne: true
  })
});

fis.match('*.less', {
  parser: fis.plugin('less'),
  rExt: '.css'
});

源文件: b.html:

<link rel="stylesheet" type="text/css" href="./static/common.css">
<link rel="stylesheet" type="text/css" href="./static/test.less">

c.html:

<link rel="stylesheet" type="text/css" href="./static/common.css">
<link rel="stylesheet" type="text/css" href="./static/index.css">
<link rel="stylesheet" type="text/css" href="./static/test.less">

1.3.8编译后: b.html:

<link rel="stylesheet" type="text/css" href="/pkg/b.html_aio.css" />

c.html:

<link rel="stylesheet" type="text/css" href="/pkg/b.html_aio.css" />
<link rel="stylesheet" type="text/css" href="/static/index.css" />

1.1.0编译后:(期望的) b.html:

<link rel="stylesheet" type="text/css" href="/pkg/b.html_aio.css" />

c.html:

<link rel="stylesheet" type="text/css" href="/pkg/c.html_aio.css" />
2betop commented 8 years ago

好吧,我知道问题所在了,待我修复,回滚两个版本就行了

2betop commented 8 years ago

请更新 1.3.9 问题解决了。我的错。

fancyboynet commented 8 years ago

可以了,谢谢