Target
来源:互联网 发布:网络安全工程师教材 编辑:程序博客网 时间:2024/05/09 13:49
webpack can compile for multiple environments or targets. To understand what a target is in detail, read the concepts.
target
string
Tells webpack which environment the application is targeting. The following values are supported via WebpackOptionsApply
:
target
async-node
Compile for usage in a Node.js-like environment (uses fs
and vm
to load chunks asynchronously) atom
electron-main
electron
electron-main
electron-main
Compile for Electron for main process. electron-renderer
Compile for Electron for renderer process, providing a target using JsonpTemplatePlugin
, FunctionModulePlugin
for browser environments and NodeTargetPlugin
and ExternalsPlugin
for CommonJS and Electron built-in modules. node
Compile for usage in a Node.js-like environment (uses Node.js require
to load chunks) node-webkit
Compile for usage in WebKit and uses JSONP for chunk loading. Allows importing of built-in Node.js modules and nw.gui
(experimental) web
Compile for usage in a browser-like environment (default) webworker
Compile as WebWorkerFor example, when the target
is set to "electron"
, webpack includes multiple electron specific variables. For more information on which templates and externals are used, you can refer to webpack’s source code.
0 0
- target
- Target
- @Target:
- Target
- target
- Target
- target
- Our target
- Next Target
- href target
- target 属性
- TARGET属性:
- target属性
- target属性
- target属性
- target achived
- target output
- target属性
- HTTP的相应200与304的区别
- php字符串处理函数大全
- 简单易懂的Cocoapods的安装和使用方法
- 利用MATLAB 实现证件照换底色教程
- 几款流行的Android测试框架
- Target
- 1087. All Roads Lead to Rome (30)
- 临时文件
- socket接收服务器数据,输出为乱码或无法输出的解决方法
- Linux crontab定时执行任务 命令格式与详细例子
- 三行情书啊
- 同步异步和阻塞非阻塞
- Android 异步加载图片,使用LruCache和SD卡或手机缓存
- 指针变量