Skip to content

Webpack error when deploying to Netlify with brand new project #448

Answered by ayushn21
luctus asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @luctus, the command to build your frontend using webpack along with your site is yarn deploy. If you change your build command to that, it should all work fine. I see you're using v0.21; just also wanted to mention that in v1.0.0 onwards, we don't use yarn as our taskrunner and the new deploy command is bin/bridgetown deploy.

Also, if you run bundle exec bridgetown configure netlify, it will create a netlify.toml file for you which has all the config in it so you don't need to manually set it up. Also you can set up tailwind using bundle exec bridgetown configure tailwindcss (Docs: https://www.bridgetownrb.com/docs/bundled-configurations)

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
3 replies
@luctus
Comment options

@luctus
Comment options

@ayushn21
Comment options

Answer selected by luctus
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@luctus
Comment options

Comment options

You must be logged in to vote
6 replies
@luctus
Comment options

@jaredcwhite
Comment options

@luctus
Comment options

@ayushn21
Comment options

@luctus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants