mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-21 18:39:48 -04:00
Build separate vertical and horizontal modules
This allows separate imports for vertical and horizontal libraries, and gives a way to import the library outside of webpack.
This commit is contained in:
parent
ff57c4e4d6
commit
1ff45f5c77
7 changed files with 25 additions and 5 deletions
13
webpack.config.js
Normal file
13
webpack.config.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
var path = require('path');
|
||||
module.exports = {
|
||||
entry: {
|
||||
horizontal: './shim/horizontal.js',
|
||||
vertical: './shim/vertical.js'
|
||||
},
|
||||
output: {
|
||||
library: 'ScratchBlocks',
|
||||
libraryTarget: 'commonjs2',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: '[name].js'
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue