Skip to content

Commit

Permalink
Merge pull request #18 from helsingborg-stad/webpack-fix
Browse files Browse the repository at this point in the history
Make webpack not remove empty object
  • Loading branch information
sebastianthulin authored Sep 16, 2024
2 parents f6d15fc + 042ddf6 commit 6eb0b69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ module.exports = {
filename: '[name].js',
path: path.resolve(__dirname, 'dist'),
publicPath: '',
library: 'AlgoliaIndex', // Name the variable you want to export globally
libraryTarget: 'var', // Output it as a global var
},
/**
* Define external dependencies here
Expand Down

0 comments on commit 6eb0b69

Please sign in to comment.