Start
This commit is contained in:
1
client/src/index.html
Normal file
1
client/src/index.html
Normal file
@ -0,0 +1 @@
|
||||
Hello World!
|
1
client/src/index.js
Normal file
1
client/src/index.js
Normal file
@ -0,0 +1 @@
|
||||
alert("Hello World 2");
|
16
client/webpack.config.js
Normal file
16
client/webpack.config.js
Normal 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"
|
||||
})
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user