-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.library.js
More file actions
31 lines (26 loc) · 822 Bytes
/
Copy pathwebpack.library.js
File metadata and controls
31 lines (26 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const path = require('path');
const webpack = require('webpack');
const { merge } = require('webpack-merge');
const CopyPlugin = require('copy-webpack-plugin');
const common = require('./webpack.common.js');
/**
* work in progress
*
* most pressing issue are the as external defined libraries
* it might not be very user friendly, if we need to include
*
<script src="./assets/jquery.3.4.1.min.js"></script>
<script src="./assets/jquery.hotkeys.js"></script>
before we can start using
only valid externals might be jquery, maybe not even these...
*/
module.exports = merge(common, {
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'infinite-drawing-canvas.js',
library: {
name: 'InfiniteDrawingCanvas',
type: 'umd',
},
},
});