From 372b93c7807a6b930dcfd453c9ce36aabc7394a9 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sat, 11 Apr 2020 01:08:28 +0300 Subject: [PATCH] react app start --- package.json | 9 ++++++++- webpack.config.dev.js | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 6cfeb24..cdc698a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,9 @@ { "name": "ps-redux", "description": "React and Redux Pluralsight course by Cory House", - "scripts": {}, + "scripts": { + "start": "webpack-dev-server --config webpack.config.dev.js --port 3000" + }, "dependencies": { "bootstrap": "4.3.1", "immer": "2.1.3", @@ -50,5 +52,10 @@ }, "engines": { "node": ">=8" + }, + "babel": { + "presets": [ + "babel-preset-react-app" + ] } } diff --git a/webpack.config.dev.js b/webpack.config.dev.js index 1993db1..4c9097f 100644 --- a/webpack.config.dev.js +++ b/webpack.config.dev.js @@ -2,12 +2,12 @@ const webpack = require("webpack"); const path = require("path"); const HtmlWebpackPlugin = require("html-webpack-plugin"); -process.env.NODE_ENV = "developent"; +process.env.NODE_ENV = "development"; module.exports = { - node: "development", + mode: "development", target: "web", - devTools: "cheap-module-source-map", + devtool: "cheap-module-source-map", entry: "./src/index", output: { path: path.resolve(__dirname, "build"),