print-html-element
Version:
Prints the HTML of a provided element.
34 lines (32 loc) • 669 B
JavaScript
const webpack = require('webpack');
const path = require('path');
const plugins = [
new webpack.optimize.UglifyJsPlugin({
include: /\.min\.js$/,
minimize: true
})
];
module.exports = {
entry: {
'print-html-element': './src/print-html-element.js',
'print-html-element.min': './src/print-html-element.js',
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
library: 'printHtmlElement',
libraryTarget: 'umd'
},
plugins: plugins,
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
query: {
presets: ['es2015']
}
}
]
}
};