From ea708ff732af7d0b0c54f8d6b622a76e556af8f4 Mon Sep 17 00:00:00 2001 From: "marlon.dsn.shop@alterdata.com.br" Date: Thu, 15 Apr 2021 09:56:42 -0300 Subject: [PATCH] Adjusts on production build --- webpack.production.config.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/webpack.production.config.js b/webpack.production.config.js index 7201efa..a422c20 100644 --- a/webpack.production.config.js +++ b/webpack.production.config.js @@ -6,10 +6,12 @@ const TerserPlugin = require('terser-webpack-plugin'); module.exports = { entry: './src/components/navbar/navbar.ts', output: { - libraryTarget: 'umd', + path: path.resolve(__dirname, 'dist'), filename: 'script.js', - path: path.resolve(__dirname, './dist/'), - publicPath: '/' + library: "Navbar", + libraryTarget: "umd", + libraryExport: "default", + globalObject: "this", }, mode: 'production', optimization: {