We shall able to see some of the library packages like clipboard using webpack concepts in odoo12.
Folder path: addons/web/static/lib/clipboard/clipboard.js. [Used WEBPACK to bundle js files]Actual question how it works? Any idea!!
How to create the library Js files in odoo for the required modules to bundle the Js files using webpack?(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["ClipboardJS"] = factory();
else
root["ClipboardJS"] = factory();
})
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- 项目
- MRP
此问题已终结
4511
查看
| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
|
0
9月 24
|
1945 | ||
|
|
0
8月 22
|
2834 | ||
|
|
1
5月 22
|
10160 | ||
|
|
7
12月 24
|
8524 | ||
|
|
2
4月 24
|
2641 |