UNPKG

tangiblecarousel

Version:

A touch carousel for ReactJS

37 lines (34 loc) 828 B
var webpack = require('webpack'); var libraryName = "TangibleCarousel"; var outputFile = libraryName + '.js'; var config = { entry: __dirname + '/src/TangibleCarousel.js', output: { path: __dirname + '/lib', filename: outputFile, library: libraryName, libraryTarget: 'umd' }, module: { loaders: [{ test: /\.jsx?$/, loader: 'babel', exclude: /(node_modules|bower_components)/ }] }, plugins: [ new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false }, comments: false, mangle: false, minimize: true }) ], externals: { react: 'react', 'react-dom': 'react-dom' }, } module.exports = config;