react-cropper-image-editor
Version:
Image editor built on top of CropperJs
29 lines (27 loc) • 585 B
JavaScript
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var path = require('path');
module.exports = {
entry: path.join(__dirname, 'example/src/index.jsx'),
output: {
path: path.join(__dirname, 'example/assets'),
filename: 'bundle.js',
},
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel',
},
{
test: /\.css$/,
loader: ExtractTextPlugin.extract('style', 'css'),
},
],
},
resolve: {
extensions: ['', '.js', '.jsx'],
},
plugins: [
new ExtractTextPlugin('bundle.css'),
],
};