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:
parent
2b11dd3624
commit
d13f75ab6c
@ -5,7 +5,7 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "webpack"
|
"start": "webpack --config webpack.config.js"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
9
webpack.config.js
Normal file
9
webpack.config.js
Normal 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")
|
||||||
|
}
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user