react-scroll-listen
Version:
Notify HOC in react when a scroll happens
30 lines (28 loc) • 534 B
JavaScript
const path = require('path')
module.exports = {
entry: {
'react-scroll-listen.min': './src/index.js'
},
externals: {
'react': {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
}
},
module: {
rules: [{
test: /\.js$/,
exclude: /node_modules/,
loaders: 'babel-loader'
}]
},
output: {
filename: '[name].js',
path: path.join(__dirname, 'dist'),
publicPath: 'dist/',
library: 'ReactScrollListen',
libraryTarget: 'umd'
}
}