claeusdev / react-webpack-starter

Simple React frontend starter with webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-webpack-starter

Simple React frontend starter with webpack

Looks something like this

const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
  entry: './app/index.js',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'index_bundle.js'
  },
  module: {
    rules: [
      { test: /\.(js)$/, use: 'babel-loader' },
      { test: /\.css$/, use: ['style-loader', 'css-loader'] }
    ]
  },
  mode: 'development',
  plugins: [
    new HtmlWebpackPlugin({
      template: 'app/index.html'
    })
  ]
};

About

Simple React frontend starter with webpack


Languages

Language:JavaScript 72.1%Language:HTML 27.9%