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

能否改变all in one打包的文件路径 #54

Open
fwon opened this issue May 12, 2016 · 3 comments
Open

能否改变all in one打包的文件路径 #54

fwon opened this issue May 12, 2016 · 3 comments

Comments

@fwon
Copy link

fwon commented May 12, 2016

allInOne: {
js: '${filepath}.js'
}

这样打包${filepath}会把html目录也打包进去,然后生成pkg/html/xxx.js 这里能否自定义路径,别把路径html/也带进去,直接生成pkg/xxx.js

@xjchenhao
Copy link

xjchenhao commented May 17, 2016

我是这么配置的

allInOne: {
    css: 'pkg/${hash}_aio.css',
    js: 'pkg/${hash}_aio.js',
    ignore: 'require.js',
    sourceMap: false
}

@zhuzhuaicoding
Copy link

升级fis最新版本,js和css property可以是function了

       postpackager: fis.plugin('loader', {
            allInOne: {
                includeAsyncs: true,
                js: function(file) {
                    return "static/" + file.filename + ".js";
                },
                css: function(file) {
                    return "static/" + file.filename + ".css";
                },
                sourceMap: true //是否生成依赖map文件
            },
            resourcemapWhitespace: 4
        })

@shunzizhan
Copy link

我修改路径也是一直报错,fis版本是v3.4.13,请问也是需要升级么@earlymeme
image

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

4 participants