Skip to content

Commit

Permalink
Adopt the UMD wrapper
Browse files Browse the repository at this point in the history
The change introduced in #61 broke some use cases, for example directly including a built file into a browser. This UMD wrapper generated by webpack will still allow this to function.
  • Loading branch information
Thomas Erbe committed Feb 12, 2019
1 parent 2d343d5 commit 9dda793
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ module.exports = {
entry: entry('./src/bulma.js', './src/plugins/*.js'),
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'dist')
path: path.resolve(__dirname, 'dist'),
library: 'Bulma',
libraryTarget: 'umd',
libraryExport: 'default',
umdNamedDefine: true
},
module: {
rules: [
Expand Down

0 comments on commit 9dda793

Please sign in to comment.