diff --git a/config/paths.js b/config/paths.js index bf0ae7c6..0e377741 100644 --- a/config/paths.js +++ b/config/paths.js @@ -58,8 +58,8 @@ module.exports = { appPublic: resolveApp("public"), appHtml: resolveApp("public/index.html"), appIndexJs: resolveModule(resolveApp, "src/index"), - embedAppHtml: resolveApp("public/embed.html"), - embedAppIndexJs: resolveModule(resolveApp, "src/embed"), + widgetAppHtml: resolveApp("public/widget.html"), + widgetAppIndexJs: resolveModule(resolveApp, "src/index-widget"), appPackageJson: resolveApp("package.json"), appSrc: resolveApp("src"), appTsConfig: resolveApp("tsconfig.json"), diff --git a/config/webpack.config.js b/config/webpack.config.js index 6fbe2d43..da871227 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -133,7 +133,7 @@ module.exports = function (webpackEnv) { : isEnvDevelopment && "cheap-module-source-map", // These are the "entry points" to our application. // This means they will be the "root" imports that are included in JS bundle. - entry: { main: paths.appIndexJs, embed: paths.embedAppIndexJs }, + entry: { main: paths.appIndexJs, widget: paths.widgetAppIndexJs }, output: { // The build folder. path: paths.appBuild, @@ -439,10 +439,10 @@ module.exports = function (webpackEnv) { Object.assign( {}, { - filename: "embed.html", + filename: "widget.html", inject: true, - template: paths.embedAppHtml, - chunks: ["embed"] + template: paths.widgetAppHtml, + chunks: ["widget"] }, isEnvProduction ? { diff --git a/package.json b/package.json index c355860e..e3b6ea6a 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@uiball/loaders": "^1.2.6", "bfj": "^7.0.2", "browserslist": "^4.21.4", + "clsx": "^1.2.1", "copy-image-clipboard": "^2.1.2", "css-loader": "^6.7.1", "css-minimizer-webpack-plugin": "^4.2.2", diff --git a/public/embed_demo.html b/public/embed_demo.html deleted file mode 100644 index 16e44a66..00000000 --- a/public/embed_demo.html +++ /dev/null @@ -1,30 +0,0 @@ - - -
- - - -