Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
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();
})


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 24
1276
0
thg 8 22
2094
1
thg 5 22
9181
7
thg 12 24
6906
2
thg 4 24
1807