Added webpack
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
node_modules/*
|
||||||
1683
package-lock.json
generated
Normal file
1683
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
26
package.json
Normal file
26
package.json
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"name": "EvolutionSimulatorV2",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "Version 2 of the evolution simulator",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
|
"build": "webpack --mode=production",
|
||||||
|
"build-dev": "webpack --mode=development",
|
||||||
|
"build-watch": "webpack --watch --mode=development"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/MaxRobinsonTheGreat/EvolutionSimulatorV2.git"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/MaxRobinsonTheGreat/EvolutionSimulatorV2/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/MaxRobinsonTheGreat/EvolutionSimulatorV2#readme",
|
||||||
|
"devDependencies": {
|
||||||
|
"webpack-cli": "^3.3.12"
|
||||||
|
}
|
||||||
|
}
|
||||||
0
src/index.js
Normal file
0
src/index.js
Normal file
9
webpack.config.js
Normal file
9
webpack.config.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
entry: './src/index.js',
|
||||||
|
output: {
|
||||||
|
filename: 'main.js',
|
||||||
|
path: path.resolve(__dirname, 'dist'),
|
||||||
|
},
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user