cluedin-widget
Version: 
This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.
41 lines (39 loc) • 919 B
JavaScript
var webpack = require('webpack');
var path = require('path');
module.exports = {
  entry: [
    './build/index.js',
  ],
  output: {
    path: path.join(__dirname, 'dist'),
    filename: 'cluedin_widget.js',
  },
  devtool: 'eval',
  devServer: {
    historyApiFallback: true,
  },
  resolve: {
    extensions: ['', '.js', '.jsx'],
  },
  plugins: [
    new webpack.HotModuleReplacementPlugin(),
  ],
  module: {
    loaders: [
      {
        test: /\.js$/,
        loaders: ['react-hot', 'babel?presets[]=es2015,presets[]=stage-1'],
        exclude: /node_modules/,
      },
      {
        test: /\.jsx$/,
        loaders: ['react-hot', 'babel?presets[]=es2015,presets[]=react,presets[]=stage-1,plugins[]=transform-decorators-legacy,plugins[]=transform-object-rest-spread'],
        exclude: /node_modules/,
      },
      {
        test: /\.css$/,
        loaders: ['style', 'css?module'],
      },
    ],
  },
};