webpack-node-externals:轻松排除Webpack中的节点模块

Webpack节点模块外部轻松排除Webpack中的节点模块Webpack允许您定义组件-不应捆绑的模块。与后端的Webpack捆绑在一起时-通常,您不想捆绑其node_modules依赖项。这个库创建的外部函数忽略node_modules中的WebPack捆绑时。 (灵感来自系列的出色)快速使用npm install webpack-node-externals --save-dev在您的webpack.config.js : const nodeExternals = require ( 'webpack-node-externals' ) ; ... module
zip
webpack-node-externals-master.zip 预估大小:16个文件
folder
webpack-node-externals-master 文件夹
file
utils.js 4KB
file
.travis.yml 138B
file
LICENSE 1KB
folder
test 文件夹
file
webpack.spec.js 1024B
file
test-utils.js 6KB
file
library.spec.js 17KB
folder
test-webpack 文件夹
folder
modules 文件夹
folder
module-a 文件夹
file
index.js 74B
folder
module-b 文件夹
file
index.js 74B
folder
module-c 文件夹
file
index.js 74B
file
index.js 137B
file
.prettierrc 48B
file
README.md 6KB
file
.gitignore 529B
file
index.js 3KB
file
package-lock.json 44KB
file
package.json 1011B
zip 文件大小:24.65KB