尝试使用webpack将我的所有主库捆绑到一个文件中,但没有运气 我在下面的webpack.config.js
@Override public void onActivityResult(int requestCode, int resultCode, Intent data)
{
Uri returnUri = data.getData();
switch (requestCode)
{
case 1000:
if (resultCode == RESULT_OK && returnUri != null)
{
Bitmap bitmapImage = null;
try
{
bitmapImage = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(), returnUri);
}
catch (IOException e)
{
e.printStackTrace();
}
mImageview.setImageBitmap(bitmapImage);
Glide.with(this)
.load(returnUri)
.override(1280, 1280)
.centerCrop()
.crossFade().into(mImageview);
}
break;
default:
super.onActivityResult(requestCode, resultCode, data);
break;
}
}//onActivityResult
然而,当我运行webpack时,我得到了
module.exports = {
entry: {
main: [
'./core/vendor/jquery.min.js',
'./core/vendor/bootstrap.min.js',
"./core/vendor/knockout-3.3.0.js",
"./core/vendor/knockout.mapping-latest.js",
"./core/plugins/owl.carousel.min.js",
"./core/vendor/jquery.mobile.min.js"
]
},
output: {
path: __dirname + "/Public/build",
filename: '[name]-bundle.js',
publicPath: "/build/"
}
}
有什么想法吗?
由于