Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fancyboynet opened this issue Dec 4, 2015 · 5 comments
Closed

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

fancyboynet opened this issue Dec 4, 2015 · 5 comments

Comments

@fancyboynet
Copy link

1.1.0是正常的

@2betop
Copy link
Contributor

2betop commented Dec 4, 2015

具体点?

@fancyboynet
Copy link
Author

@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
Copy link
Contributor

2betop commented Dec 4, 2015

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

@2betop
Copy link
Contributor

2betop commented Dec 4, 2015

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

@fancyboynet
Copy link
Author

可以了,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants