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

请问aioPkg字段的生成逻辑是怎样的 #90

Open
fancyboynet opened this issue Jun 9, 2017 · 0 comments
Open

请问aioPkg字段的生成逻辑是怎样的 #90

fancyboynet opened this issue Jun 9, 2017 · 0 comments

Comments

@fancyboynet
Copy link

配置部分:

.match('!page/**.html', {
            loaderLang: false
        })
        .match('::package', {
            postpackager: fis.plugin('loader', {
                resourceType: 'mod',
                allInOne: {
                    ignore: ['static/lib/**', 'node_modules/jquery/**']
                }
            })
        })

打包后发现,一个组件的aioPkg字段对应的是最后一个有用到这个组件的页面的资源,例如

"w:widget/header/header.css": {
            "uri": "/static/w/widget/header/header_2bb2592.css",
            "type": "css",
            "deps": [
                "w:widget/reset/reset.css"
            ],
            "aioPkg": "w:pkg/page/zzz/zzz.html_aio.css"
        }

其中header.css在多个页面都会被用到,zzz.html应该是最后一个打包的页面?

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

1 participant