Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Alewis/custom webpack config for sites #957

Merged
merged 10 commits into from
Dec 17, 2019

Conversation

ashleymichal
Copy link
Contributor

@ashleymichal ashleymichal commented Dec 13, 2019

fixes #905 . need a followup PR for documenting the expected use of these, because it is not immediately obvious to someone not familiar with webpack (like me).

i also want another followup PR to warn when wranglerjs fails with Entry module not found, and a user has a site AND a custom webpack config, to tell them to set the context like it is here.

@ashleymichal ashleymichal added changelog - feature webpack Issues that involve the `webpack` bundler regression Something is broken, but works in previous releases sites labels Dec 13, 2019
@ashleymichal ashleymichal added this to the 1.7.0 milestone Dec 13, 2019
@ashleymichal ashleymichal requested a review from a team December 13, 2019 22:33
@ashleymichal ashleymichal self-assigned this Dec 13, 2019
tests/build.rs Outdated
fixture.create_file(
"workers-site/webpack.worker.js",
r#"
module.exports = { context: __dirname, entry: "./index.js" };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should target: webworker in case somebody tries to copy our test suite instead of looking at our docs :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i... O.o

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we do that for all of them though? because none of the rest of our tests do this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm yeah we probably should... if we dont provide a custom config then it should be using it automatically

Copy link
Contributor

@EverlastingBugstopper EverlastingBugstopper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should file an issue if we're doing error messaging separately and should also write up some docs for this

@ashleymichal
Copy link
Contributor Author

ashleymichal commented Dec 17, 2019

tested with mdx-deck workers sites project with custom webpack to not minify. can confirm this works as expected. will merge when CI passes and release with 1.7.0

@ashleymichal ashleymichal merged commit 8fd7f22 into master Dec 17, 2019
@delete-merged-branch delete-merged-branch bot deleted the alewis/custom-webpack-config-for-sites branch December 17, 2019 22:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
regression Something is broken, but works in previous releases sites webpack Issues that involve the `webpack` bundler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow custom webpack config for Workers Sites projects
2 participants