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

时间:2021-02-06 04:36:45
【文件属性】:
文件名称:webpack-node-externals:轻松排除Webpack中的节点模块
文件大小:25KB
文件格式:ZIP
更新时间:2021-02-06 04:36:45
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
【文件预览】:
webpack-node-externals-master
----utils.js(4KB)
----.travis.yml(138B)
----LICENSE(1KB)
----test()
--------webpack.spec.js(1024B)
--------test-utils.js(6KB)
--------library.spec.js(17KB)
--------test-webpack()
----.prettierrc(48B)
----README.md(6KB)
----.gitignore(529B)
----index.js(3KB)
----package-lock.json(44KB)
----package.json(1011B)

网友评论