UNPKG

material-ui-arrowy-pagination

Version:
42 lines (40 loc) 963 B
// eslint-disable-next-line import/no-extraneous-dependencies const webpack = require('webpack'); const path = require('path'); module.exports = { devtool: 'cheap-module-source-map', entry: [ 'react-hot-loader/patch', 'webpack-hot-middleware/client', './example/index.jsx', ], output: { path: path.join(__dirname, '/static'), filename: 'main.bundle.js', publicPath: '/static/', }, plugins: [ new webpack.optimize.OccurenceOrderPlugin(), new webpack.HotModuleReplacementPlugin(), new webpack.NoErrorsPlugin(), ], module: { loaders: [ { test: /\.scss$/, loaders: ['style-loader', 'css-loader', 'sass-loader'], }, { test: /\.js|jsx$/, exclude: /node_modules/, loader: 'babel-loader', query: { presets: ['es2015', 'react', 'stage-0'], }, }, ], }, resolve: { extensions: ['', '.jsx', '.js', '.json'], }, };