You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
452 B
26 lines
452 B
module.exports = {
|
|
entry: './src/index.js',
|
|
output: {
|
|
filename: './dist/table2excel.core.js',
|
|
library: 'Table2Excel',
|
|
libraryTarget: 'umd',
|
|
libraryExport: 'default'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
use: [
|
|
'babel-loader',
|
|
],
|
|
exclude: /node_modules/
|
|
}
|
|
]
|
|
},
|
|
externals: {
|
|
'exceljs/dist/es5/exceljs.browser': 'ExcelJS'
|
|
},
|
|
node: {
|
|
fs: 'empty'
|
|
}
|
|
};
|
|
|