From 55271575682fb30179a5e63593db29a362f45c37 Mon Sep 17 00:00:00 2001 From: MaxOvs19 Date: Thu, 13 Apr 2023 12:46:11 +0300 Subject: [PATCH] create cdn-main --- webpack.config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 83c369c..7a27a02 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -7,8 +7,11 @@ module.exports = { path: path.resolve(__dirname, 'dist'), filename: 'main.js', clean: true, - library: 'CGSelect', - libraryTarget: 'umd', + library: { + name: 'CGSelect', + type: 'window', + export: 'default', + }, }, // devServer: { // open: true,