Skip to content
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

Merged
merged 1 commit into from
Jan 10, 2023
Merged

Use common webpack config #3633

merged 1 commit into from
Jan 10, 2023

Conversation

raimund-schluessler
Copy link
Contributor

@raimund-schluessler raimund-schluessler commented Jan 8, 2023

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.

@raimund-schluessler
Copy link
Contributor Author

Don't merge this yet, npm run styleguide is not happy about it:

> @nextcloud/[email protected] styleguide
> vue-styleguidist server

Building @nextcloud/vue 7.3.0 

This build version hash is 78efc74 

ValidationError: webpack Dev Server Invalid Options

options should NOT have additional properties
options should NOT have additional properties

ValidationError: webpack Dev Server Invalid Options

options should NOT have additional properties
options should NOT have additional properties

    at validateOptions (/home/raimund/nextcloud/apps2/nextcloud-vue/node_modules/vue-styleguidist/node_modules/webpack-dev-server/node_modules/schema-utils/src/validateOptions.js:32:11)
    at new Server (/home/raimund/nextcloud/apps2/nextcloud-vue/node_modules/vue-styleguidist/node_modules/webpack-dev-server/lib/Server.js:57:5)
    at createServer (/home/raimund/nextcloud/apps2/nextcloud-vue/node_modules/vue-styleguidist/lib/scripts/create-server.js:38:19)
    at server (/home/raimund/nextcloud/apps2/nextcloud-vue/node_modules/vue-styleguidist/lib/scripts/server.js:11:49)
    at Object.commandServer (/home/raimund/nextcloud/apps2/nextcloud-vue/node_modules/vue-styleguidist/lib/scripts/binutils.js:118:41)
    at runIt (/home/raimund/nextcloud/apps2/nextcloud-vue/node_modules/vue-styleguidist/lib/bin/styleguidist.js:78:16)

webpack.config.js Outdated Show resolved Hide resolved
Signed-off-by: Raimund Schlüßler <[email protected]>
@raimund-schluessler
Copy link
Contributor Author

Don't merge this yet, npm run styleguide is not happy about it:

Fixed it, npm run styleguide works for me now.

@GretaD GretaD merged commit d1239f6 into master Jan 10, 2023
@GretaD GretaD deleted the feat/noid/common-webpack branch January 10, 2023 13:51
@skjnldsv
Copy link
Contributor

Awesome @raimund-schluessler 🤗

@skjnldsv skjnldsv added enhancement New feature or request technical debt 4. to release Ready to be released and/or waiting for tests to finish labels Jan 10, 2023
@skjnldsv skjnldsv mentioned this pull request Jan 11, 2023
webpackConfig.output = {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',
filename: `[name].${libraryTarget}.js`,
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

No worries at all :)

skjnldsv added a commit that referenced this pull request Jan 11, 2023
see #3633

Signed-off-by: John Molakvoæ <[email protected]>
},
umdNamedDefine: true,
webpackConfig.entry = {
index: path.join(__dirname, 'src', 'index.js'),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

skjnldsv added a commit that referenced this pull request Jan 11, 2023
see #3633

Signed-off-by: John Molakvoæ <[email protected]>
skjnldsv added a commit that referenced this pull request Jan 11, 2023
see #3633

Signed-off-by: John Molakvoæ <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement New feature or request technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants