aboutsummaryrefslogtreecommitdiff
path: root/vnext/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/server.js')
-rw-r--r--vnext/server.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/vnext/server.js b/vnext/server.js
new file mode 100644
index 00000000..600e954a
--- /dev/null
+++ b/vnext/server.js
@@ -0,0 +1,15 @@
+var webpack = require("webpack");
+var WebPackDevServer = require("webpack-dev-server");
+var config = require("./webpack.config");
+
+new WebPackDevServer(webpack(config), {
+ publicPath: config.output.publicPath,
+ hot: true,
+ inline: true,
+ historyApiFallback: true
+}).listen(3000, 'localhost', function (err, result) {
+ if (err) {
+ return console.log(err);
+ }
+ console.log("listening")
+}) \ No newline at end of file