我遇到一个输出路径的问题。开发目录是这样的。admin/a/a.jsadmin/b/b.jsadmin/c.js然后输出的时候希望也是这个样子。admin/a/a.min.jsadmin/b/b.min.js但我怎么配都是只能这样输出。admin/a.min.jsadmin/b.min.js这是现在的配置varwebpack=require('webpack');varpath=require('path');module.exports={context:path.join(__dirname,'/app/'),entry:{index:'./index.js',register:'./register/register.js',student:'./admin/student/student.js',teacher:'./admin/teacher/teacher.js',vendor:['jquery','moment']},output:{path:path.join(__dirname,'/run'),filename:'[name].bundle.js'},plugins:[//newwebpack.optimize.UglifyJsPlugin({minimize:true})newwebpack.DefinePlugin({__DEBUG__:true}),newwebpack.optimize.CommonsChunkPlugin('vendor','vendor.bundle.js')],devtool:'#inline-source-map'};
翻过高山走不出你
相关分类