react app start

master
Tudor Stanciu 2020-04-11 01:08:28 +03:00
parent 951f495f44
commit 372b93c780
2 changed files with 11 additions and 4 deletions

View File

@ -1,7 +1,9 @@
{ {
"name": "ps-redux", "name": "ps-redux",
"description": "React and Redux Pluralsight course by Cory House", "description": "React and Redux Pluralsight course by Cory House",
"scripts": {}, "scripts": {
"start": "webpack-dev-server --config webpack.config.dev.js --port 3000"
},
"dependencies": { "dependencies": {
"bootstrap": "4.3.1", "bootstrap": "4.3.1",
"immer": "2.1.3", "immer": "2.1.3",
@ -50,5 +52,10 @@
}, },
"engines": { "engines": {
"node": ">=8" "node": ">=8"
},
"babel": {
"presets": [
"babel-preset-react-app"
]
} }
} }

View File

@ -2,12 +2,12 @@ const webpack = require("webpack");
const path = require("path"); const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin"); const HtmlWebpackPlugin = require("html-webpack-plugin");
process.env.NODE_ENV = "developent"; process.env.NODE_ENV = "development";
module.exports = { module.exports = {
node: "development", mode: "development",
target: "web", target: "web",
devTools: "cheap-module-source-map", devtool: "cheap-module-source-map",
entry: "./src/index", entry: "./src/index",
output: { output: {
path: path.resolve(__dirname, "build"), path: path.resolve(__dirname, "build"),