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