material-ui-pagination
Version:
An easy to use and customizable pagination component for material ui.
36 lines (34 loc) • 763 B
JavaScript
// eslint-disable-next-line import/no-extraneous-dependencies
const webpack = require('webpack');
const path = require('path');
const config = require('./config');
module.exports = {
entry: [
'./src/index.jsx',
],
output: {
path: path.join(__dirname, '/dist'),
library: config.library,
libraryTarget: config.libraryTarget,
filename: 'index.js',
},
plugins: [
new webpack.optimize.UglifyJsPlugin(),
],
externals: config.externals,
module: {
loaders: [
{
test: /\.js|jsx$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['es2015', 'react', 'stage-0'],
},
},
],
},
resolve: {
extensions: ['', '.jsx', '.js', '.json'],
},
};