Skip to content

Commit

Permalink
Adjusts on production build
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Apr 15, 2021
1 parent 10e19bd commit ea708ff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions webpack.production.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit ea708ff

Please sign in to comment.