table2excel
Version:
convert and download html tables to a xlsx-file that can be opened in Microsoft Excel
36 lines (34 loc) • 650 B
JavaScript
import webpack from 'webpack';
export default {
entry: [
'./src/index.js',
],
output: {
path: `${__dirname}/dist`,
filename: 'table2excel.js',
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
},
{
test: /\.min\.js$/,
loader: 'script',
},
],
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: { warnings: false },
}),
new webpack.optimize.DedupePlugin(),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production'),
},
}),
],
};