UNPKG

@texture-finance/solana-flash-loan-sdk-example

Version:
35 lines (32 loc) 674 B
const config = require('./webpack.config'); const path = require('node:path'); const HtmlWebpackPlugin = require("html-webpack-plugin"); config.entry = './build/index.js'; config.devServer = { static: { directory: path.join(process.cwd(), 'build'), }, client: { progress: true, overlay: { errors: true, warnings: false, }, }, historyApiFallback: true, open: { app: { name: 'google-chrome', }, }, hot: true, compress: true, port: 3000, }; config.plugins.push( new HtmlWebpackPlugin({ inject: true, template: path.resolve(process.cwd(), './build/index.html'), }) ); module.exports = config;