Asset Pipeline with Webpack on Phoenix
Asset pipeline using Webpack.
Clone the repo replacing the assets
folder of your project
git clone [email protected]:yordis/phoenix_assets_webpack.git path/to/assets
cd path/to/assets
Install the packages
npm install
# or if you prefer yarn
yarn install
Change the watchers on config/dev.exs
file.
watchers: [npm: ["start", cd: Path.expand("../assets", __DIR__)]]
Hack your setup. Open issues and Repeat.