Webpack:如何保持输出不扁平?

时间:2015-03-22 07:59:31

标签: javascript gulp webpack

如何保持输出不变平?

"entry": {
    "head": path.join("js/user/resume.js"),
    "login": path.join("js/login/login.js"),
}

预期的输出结构: dist/js/user/resume.jsdist/js/login/login.js

是否有配置选项,如Gulp' base

1 个答案:

答案 0 :(得分:0)

entry:{
    'user/resume': path.join('js/user/resume.js'),
    'login/login': path.join('js/login/login.js')
}