-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use common webpack config #3633
Conversation
25605c4
to
347eaa3
Compare
Don't merge this yet,
|
Signed-off-by: Raimund Schlüßler <[email protected]>
347eaa3
to
b5a5605
Compare
Fixed it, |
Awesome @raimund-schluessler 🤗 |
webpackConfig.output = { | ||
path: path.resolve(__dirname, './dist'), | ||
publicPath: '/dist/', | ||
filename: `[name].${libraryTarget}.js`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a breaking change @raimund-schluessler please revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meh, let me do that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I must have mixed it up with the if (libraryTarget !== 'umd')
section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries at all :)
see #3633 Signed-off-by: John Molakvoæ <[email protected]>
}, | ||
umdNamedDefine: true, | ||
webpackConfig.entry = { | ||
index: path.join(__dirname, 'src', 'index.js'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skjnldsv Comparing https://github.com/nextcloud/nextcloud-vue/blob/master/webpack.config.js with https://github.com/nextcloud/nextcloud-vue/blob/v7.3.0/webpack.config.js I think this also needs to go into the umd section here:
https://github.com/nextcloud/nextcloud-vue/blob/e5999882e2ae4fe22b2c72e3671ef509e1e8a36e/webpack.config.js#L159-L161
see #3633 Signed-off-by: John Molakvoæ <[email protected]>
see #3633 Signed-off-by: John Molakvoæ <[email protected]>
This PR introduces the common webpack config.
However,
npm run styleguide
is broken (see #3634), which needs to be fixed before we can decide how to proceed here.