Skip to content

Instantly share code, notes, and snippets.

View awestbro's full-sized avatar

Aaron Westbrook awestbro

View GitHub Profile
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
entry: ['./web/static/js/app.js'],
output: {
path: './priv/static/dist',
filename: 'app.js',
},
plugins: [
new CopyWebpackPlugin([{ from: './web/static/assets/', to: '../' }]),