forked from mattboldt/typed.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
45 lines (44 loc) · 817 Bytes
/
webpack.config.js
File metadata and controls
45 lines (44 loc) · 817 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import webpack from 'webpack';
import pkg from './package.json';
var banner = `
${pkg.name} - ${pkg.description}
Author: ${pkg.author}
Version: v${pkg.version}
Url: ${pkg.homepage}
License(s): ${pkg.license}
`;
export default {
entry: {
Typed: './src/typed.js'
},
output: {
path: __dirname,
library: 'Typed',
libraryTarget: 'umd',
filename: `typed.js`
},
devtool: '#inline-source-map',
externals: [
{
lodash: {
root: '_',
commonjs: 'lodash',
commonjs2: 'lodash',
amd: 'lodash'
}
}
],
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel',
query: {
compact: false
}
}
]
},
plugins: [new webpack.BannerPlugin(banner)]
};