blob: 292c7ae2a411c2905e74d5509c57b4e967f57eb5 (
plain)
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
|
const path = require('path'),
MinifyPlugin = require('babel-minify-webpack-plugin');
module.exports = {
entry: './lib/index.js',
plugins: [
new MinifyPlugin()
],
output: {
filename: 'smartquotes.js',
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'umd',
library: 'smartquotes'
},
devtool: 'source-map',
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: [/node_modules/],
options: {
presets: ['es2015']
}
}
]
}
};
|