1 const path = require("path");
2 const HtmlWebpackPlugin = require("html-webpack-plugin");
3 const CopyWebpackPlugin = require('copy-webpack-plugin');
4 const webpack = require("webpack");
7 entry: ["babel-polyfill", "./src/index.js"],
9 path: path.join(__dirname, "/dist"),
10 filename: "index-bundle.js",
16 exclude: /node_modules/,
20 test: /\.(woff(2)?|ttf|eot|svg|otf)(\?v=\d+\.\d+\.\d+)?$/,
22 loader: 'file-loader',
31 use:['style-loader','css-loader', 'sass-loader']
36 historyApiFallback: true,
38 // Send API requests on localhost to API server get around CORS.
41 target:'http://app.bycoin.io:3200/dapp',
48 target:'http://app.bycoin.io:3100/dapp',
57 extensions: ['.scss', '.css', '.js', '.jsx', '.json'],
60 new CopyWebpackPlugin([
66 new HtmlWebpackPlugin({
67 template: "./src/index.html"
69 new webpack.ProvidePlugin({