a-virtual-table
Version:
The virtual scrolling component developed based on the Table component of Ant Design supports dynamic height and solves the problem of scrolling stuck when the amount of data is large.
26 lines (23 loc) • 580 B
JavaScript
const path = require('path')
const buildDemoFiles = require('./build/buildDemoFiles.js')
const isProduction = process.env.NODE_ENV === 'production'
const demoFiles = buildDemoFiles()
module.exports = {
publicPath: isProduction ? '././' : '/',
transpileDependencies: true,
chainWebpack: config => {
config
.plugin('define')
.tap(args => {
args[0]['process.env']['demoFiles'] = demoFiles
return args
})
},
configureWebpack: {
resolve: {
alias: {
'a-virtual-table': path.resolve('../src/index')
}
}
}
}