b8c184cc60
Hopefully this will make it a bit clearer as to what people should compile if they want the wallet.
46 lines
1016 B
JavaScript
46 lines
1016 B
JavaScript
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
const FaviconsWebpackPlugin = require('favicons-webpack-plugin')
|
|
var path = require('path')
|
|
|
|
module.exports = {
|
|
mode: 'development',
|
|
entry: path.resolve(__dirname, '/src/index'),
|
|
devServer: {
|
|
port: 9000,
|
|
compress: true,
|
|
historyApiFallback: true,
|
|
hot: true,
|
|
},
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
template: path.resolve(__dirname, 'public/index.html'),
|
|
filename: 'index.html',
|
|
}),
|
|
new FaviconsWebpackPlugin(path.resolve(__dirname, 'public/favicon.ico')),
|
|
],
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(ts|tsx)$/,
|
|
exclude: /node_modules/,
|
|
use: ['babel-loader'],
|
|
},
|
|
{
|
|
test: /\.css$/i,
|
|
use: ['style-loader', 'css-loader'],
|
|
},
|
|
{
|
|
test: /\.(png|jpe?g|gif|svg)$/i,
|
|
use: [
|
|
{
|
|
loader: 'file-loader',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: ['*', '.js', '.jsx', '.ts', '.tsx'],
|
|
},
|
|
}
|