mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-07-29 23:29:05 -04:00
Add UMD target for use without "require"/"import"
This commit is contained in:
parent
a45d8ad6ab
commit
072dbae8e4
1 changed files with 12 additions and 0 deletions
|
@ -13,6 +13,18 @@ module.exports = [{
|
|||
filename: '[name].js'
|
||||
}
|
||||
}, {
|
||||
entry: {
|
||||
horizontal: './shim/horizontal.js',
|
||||
vertical: './shim/vertical.js'
|
||||
},
|
||||
output: {
|
||||
library: 'Blockly',
|
||||
libraryTarget: 'umd',
|
||||
path: path.resolve(__dirname, 'dist', 'web'),
|
||||
filename: '[name].js'
|
||||
}
|
||||
},
|
||||
{
|
||||
output: {
|
||||
filename: '[name].js',
|
||||
path: path.resolve(__dirname, 'gh-pages')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue