2019-07-13 18:16:46 +00:00
|
|
|
// We need to import the CSS so that webpack will load it.
|
|
|
|
// The MiniCssExtractPlugin is used to separate it out into
|
|
|
|
// its own CSS file.
|
|
|
|
import css from "../css/app.css"
|
|
|
|
|
|
|
|
// webpack automatically bundles all modules in your
|
|
|
|
// entry points. Those entry points can be configured
|
|
|
|
// in "webpack.config.js".
|
|
|
|
//
|
|
|
|
// Import dependencies
|
|
|
|
//
|
|
|
|
import "phoenix_html"
|
|
|
|
|
2019-10-23 12:38:11 +00:00
|
|
|
import {Socket} from "phoenix"
|
|
|
|
import LiveSocket from "phoenix_live_view"
|
|
|
|
|
|
|
|
let liveSocket = new LiveSocket("/live", Socket)
|
|
|
|
liveSocket.connect()
|