UNPKG

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.

52 lines (50 loc) 1.58 kB
var webpack = require( 'webpack' ); var path = require( 'path' ); module.exports = { entry: [ 'webpack-dev-server/client?http://0.0.0.0:8080', // WebpackDevServer host and port 'webpack/hot/only-dev-server', // "only" prevents reload on syntax errors './build/index.js' ], output: { path: path.join( __dirname, 'dist' ), filename: 'cluedin_widget.js', publicPath: '/static/' }, 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' ] }, { test: /\.scss$/, loaders: [ 'style', 'css?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:5]', 'resolve-url', 'sass' ] } ] } };