Current section

Files

Jump to
phx_new templates phx_assets webpack app.js
Raw

templates/phx_assets/webpack/app.js

// 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
//
<%= if html do %>import "phoenix_html"<% end %>
// Import local files
//
// Local files can be imported directly using relative paths, for example:
// import socket from "./socket"