word-table
Version:
word-table is simple browserjs / nodejs library for drawing tables in the terminal/console.
32 lines (30 loc) • 637 B
JavaScript
/**
* Copyright (c) 2017 hustcc
* License: MIT
* GitHub: https://github.com/hustcc/word-width
**/
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: './src/index.js',
output: {
filename: 'word-table.min.js',
path: path.resolve(__dirname, 'dist'),
library: 'WordTable',
libraryTarget: 'umd',
umdNamedDefine: true
},
module: {
loaders: [{
test: /.js$/,
loader: 'babel-loader'
}]
},
devtool: 'source-map',
plugins: [
new webpack.optimize.UglifyJsPlugin({
output: { comments: false },
compress: { warnings: false }
})
]
};