webpack.config.js module.exports = { //... externals: { jquery: 'jQuery' } };. 这样就剥离了那些不需要改动的依赖模块,换句话,下面展示的代码还可以正常运行:
確定! 回上一頁