Add webpack config file

- Created webpack.config.js
- Added some basic configuration
- Modified package.json, so that webpack uses our config file
This commit is contained in:
Colt Steele 2019-03-05 11:48:38 -08:00
parent 2b11dd3624
commit d13f75ab6c
2 changed files with 10 additions and 1 deletions

View File

@ -5,7 +5,7 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "webpack"
"start": "webpack --config webpack.config.js"
},
"keywords": [],
"author": "",

9
webpack.config.js Normal file
View File

@ -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")
}
};