11ta/11ta-template

main.js 404 breaks alpine

MMcKinney opened this issue · 1 comments

src/assets/scripts/main.js isn't making it to dist/assets

replicated here: https://11ta.netlify.app/
the hamburger menu doesn't work

I fixed my build by adding a passthrough copy of cdn.min.js and using that instead of main.js for now

eleventyConfig.addPassthroughCopy({
'./node_modules/alpinejs/dist/cdn.min.js': 'assets/alpine.js',
})
Capture

Thanks for pointing this out. I just removed main.js and pointed to the CDN. I just don't have the time to deal with it any other way. 😀