Files
coopgo/node_modules/react-scroll-sync/webpack.config.js
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

30 lines
509 B
JavaScript

/* global __dirname */
const path = require('path')
module.exports = {
entry: './src/index.js',
devtool: 'source-map',
output: {
path: path.join(__dirname, 'dist'),
filename: 'index.js',
libraryTarget: 'umd',
library: 'ScrollSync'
},
module: {
loaders: [
{
include: [
path.resolve(__dirname, 'src')
],
test: /\.js$/,
loader: 'babel-loader'
}
]
},
externals: {
react: 'react',
'react-dom': 'react-dom'
}
}