From d13f75ab6c6c90e1e7232c2b03fde96b0dd8e6a5 Mon Sep 17 00:00:00 2001 From: Colt Steele Date: Tue, 5 Mar 2019 11:48:38 -0800 Subject: [PATCH] Add webpack config file - Created webpack.config.js - Added some basic configuration - Modified package.json, so that webpack uses our config file --- package.json | 2 +- webpack.config.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 webpack.config.js diff --git a/package.json b/package.json index 26f96c3..80d6226 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "", "main": "index.js", "scripts": { - "start": "webpack" + "start": "webpack --config webpack.config.js" }, "keywords": [], "author": "", diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..031c3e4 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,9 @@ +const path = require("path"); +module.exports = { + mode: "development", + entry: "./src/index.js", + output: { + filename: "main.js", + path: path.resolve(__dirname, "dist") + } +};