Use the common webpack and stylelint configuration#2037
Use the common webpack and stylelint configuration#2037raimund-schluessler wants to merge 1 commit intomasterfrom
Conversation
|
Great step! |
76b54fb to
2e2bc60
Compare
|
@skjnldsv I fixed all issues mentioned.
Fine with me, but I think that's something for another PR. 😉 And I have to admit I have zero experience with rollup, so I cannot really judge if it's a good idea or not. Edit: Will we have a common rollup configuration? I just saw nextcloud-vue-dashboard already uses rollup? @juliushaertl |
Would be a good idea once we've sorted it out in nextclod-vue. I already looked into moving to rollup in the past which was mainly blocked by the iconfont generator which I couldn't get done via rollup, but I just noticed we don't do that anymore 47fb0a1 so this might be worth another try, but maybe we can move that to a separate issue indeed. This would help a lot to reduce the size as the library internal modules could then also be treeshaken. |
juliusknorr
left a comment
There was a problem hiding this comment.
Small nitpick, looks good otherwise 👍
2e2bc60 to
7959de3
Compare
|
I don't have npm at hand right now, so if someone wants to rebase... 😉 |
|
|
we cannot switch to webpack 5 because of #1781 (comment) |
I didn't update webpack to 5, it is still at 4.42.1 in this PR, see https://github.com/nextcloud/nextcloud-vue/blob/fix/common-webpack-config/package.json#L128. Maybe something is off with your node or npm? |
Sorry, I might have gotten it wrong. Do |
I just checked the release notes, and I guess this is exactly the case. I will take care of this in the evening and downgrade the affected packages. #1781 (comment) is unfortunately still not solved, I just checked that yesterday. |
Yes :) |
|
If you downgrade I think splitting the two woul dhelp. But I don't know if styleguidist can work by just importing an existing built lib? This is too much of a blocker. https://github.com/vue-styleguidist/vue-styleguidist/tree/dev/examples |
This sounds complicated. Maybe we just wait until #1781 is resolved 🙈 |
7959de3 to
0ac9c1f
Compare
|
@skjnldsv The weird thing is that I don't get these warnings when running |
Npm 6 or 7? |
I ran it with npm 6. Got no warnings regarding webpack 5 🤷♀️ Checks also don't complain 🤔 |
|
Stylelint covered by #2143 |
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
0ac9c1f to
c047a22
Compare

Simplifies the configuration a bit.