react-to-target-auto-scroll
Version:
A React auto scroll component which scrolls to a given target position, supports linear and eased scrolling
33 lines (28 loc) • 555 B
JavaScript
/* jshint node: true */
var path = require('path');
module.exports = {
context: path.join(__dirname),
entry: './lib/index.js',
output: {
path: path.join(__dirname, 'dist'),
filename: 'index.js',
libraryTarget: 'umd',
library: 'ReactAutoScroll'
},
externals: {
'react/addons': 'React'
},
module: {
loaders: [
{
test: /(\.js)|(\.jsx)$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
optional: ['runtime'],
stage: 0
}
}
]
}
};