mirror of
https://github.com/danbulant/ester_os
synced 2026-06-16 04:41:08 +00:00
Add basic react config
This commit is contained in:
parent
303b4e7e7b
commit
8cd758e5b5
1 changed files with 24 additions and 0 deletions
24
client/webpack.config.js
Normal file
24
client/webpack.config.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
module.exports = {
|
||||
context: __dirname + "/src",
|
||||
entry: {
|
||||
javascript: "./app.js",
|
||||
html: "./index.html",
|
||||
},
|
||||
|
||||
output: {
|
||||
filename: "app.js",
|
||||
path: __dirname + "/dist",
|
||||
},
|
||||
|
||||
loaders: [
|
||||
{
|
||||
test: /\.html$/,
|
||||
loader: "file?name=[name].[ext]",
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
loaders: ["react-hot", "babel-loader"],
|
||||
}
|
||||
],
|
||||
}
|
||||
Loading…
Reference in a new issue