This commit is contained in:
Tim Stallard 2017-02-14 10:26:27 +00:00
commit c4cdd3bd39
5 changed files with 44 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules
client/build

1
client/src/index.html Normal file
View File

@ -0,0 +1 @@
Hello World!

1
client/src/index.js Normal file
View File

@ -0,0 +1 @@
alert("Hello World 2");

16
client/webpack.config.js Normal file
View File

@ -0,0 +1,16 @@
var path = require("path");
var HtmlWebpackPlugin = require("html-webpack-plugin");
var webpack = require("webpack");
module.exports = {
context: path.join(__dirname, "src"),
entry: "./index.js",
output: {
path: path.join(__dirname, "build"),
filename: "app.js"
},
plugins: [
new HtmlWebpackPlugin({
template: "./index.html"
})
]
}

24
package.json Normal file
View File

@ -0,0 +1,24 @@
{
"name": "crypto-assist",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "webpack --config client/webpack.config.js",
"build-dev": "webpack --config client/webpack.config.js --watch --progress --colors"
},
"repository": {
"type": "git",
"url": "git+https://TimStallard@github.com/TimStallard/CryptoAssist.git"
},
"author": "",
"license": "UNLICENCED",
"bugs": {
"url": "https://github.com/TimStallard/CryptoAssist/issues"
},
"homepage": "https://github.com/TimStallard/CryptoAssist#readme",
"devDependencies": {
"html-webpack-plugin": "^2.28.0",
"webpack": "^2.2.1"
}
}