Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const webpack = require('webpack');
- const HtmlWebpackPlugin = require('html-webpack-plugin');
- module.exports = {
- mode: 'development',
- entry: './src/index.tsx',
- devServer: {
- historyApiFallback: true,
- inline: true,
- port: 3000,
- hot: true,
- publicPath: '/',
- },
- module: {
- rules: [
- {
- test: /\.tsx?$/,
- use: ['babel-loader', 'ts-loader'],
- },
- ],
- },
- resolve: {
- extensions: ['.js', 'jsx', '.ts', '.tsx'],
- },
- plugins: [
- new webpack.HotModuleReplacementPlugin(),
- new HtmlWebpackPlugin({
- filename: 'index.html',
- template: 'public/index_dev.html',
- }),
- ],
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement